Skip to content

Add plumbing for safe printable inset to wptrunner and webdriver.#58030

Open
mstensho wants to merge 2 commits intomasterfrom
mstensho/wptrunner-safe-printable-inset
Open

Add plumbing for safe printable inset to wptrunner and webdriver.#58030
mstensho wants to merge 2 commits intomasterfrom
mstensho/wptrunner-safe-printable-inset

Conversation

@mstensho
Copy link
Contributor

@mstensho mstensho commented Feb 25, 2026

For print reftests, check <meta name="safe-printable-inset"> to simulate
an unprintable region along the paper edges. The content attribute
takes a non-negative number, which is the safe printable inset specified
in centimeters.

This is for testing the page-margin-safety descriptor in @page and
page margin box contexts.

Only implemented for executorwebdriver.

Spec discussion: w3c/csswg-drafts#11395
css-page spec change: w3c/csswg-drafts#13190
RFC: web-platform-tests/rfcs#233
webdriver spec change: w3c/webdriver#1950

For background, see https://drafts.csswg.org/css-page-3/#printable-area

For print reftests, check <meta name="safe-printable-inset"> to simulate
an unprintable region along the paper edges. The `content` attribute
takes a non-negative number, which is the safe printable inset specified
in centimeters.

Only implemented for executorwebdriver.

Spec discussion: w3c/csswg-drafts#11395
Spec change: w3c/csswg-drafts#13190
RFC: web-platform-tests/rfcs#233

For background, see https://drafts.csswg.org/css-page-3/#printable-area
mstensho added a commit to mstensho/webdriver that referenced this pull request Feb 25, 2026
This is for testing the `page-margin-safety` descriptor in `@page` and
page margin box contexts.

Spec discussion: w3c/csswg-drafts#11395
Spec change: w3c/csswg-drafts#13190
RFC: web-platform-tests/rfcs#233

wptrunner and webdriver code changes:
web-platform-tests/wpt#58030
@mstensho mstensho marked this pull request as ready for review February 25, 2026 10:46
@wpt-pr-bot wpt-pr-bot added infra manifest webdriver wg-s_browser-tools-testing wptrunner The automated test runner, commonly called through ./wpt run labels Feb 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infra manifest webdriver wg-s_browser-tools-testing wptrunner The automated test runner, commonly called through ./wpt run

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants