Skip to content

Commit 1891456

Browse files
committed
Add safePrintableInset parameter for printing.
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
1 parent cc4c0d2 commit 1891456

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

index.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11313,6 +11313,14 @@ <h3><dfn>Print Page</dfn></h3>
1131311313
<li><p>If <var>shrinkToFit</var> is not a <a>Boolean</a>
1131411314
return <a>error</a> with <a>error code</a> <a>invalid argument</a>.
1131511315

11316+
<li><p>Let <var>safePrintableInset</var> be the result of <a>getting a
11317+
property with default</a> named "<code>safePrintableInset</code>" and with
11318+
default <code>0</code> from <var>parameters</var>.
11319+
11320+
<li><p>If <var>safePrintableInset</var> is not a <a>Number</a>, or is a
11321+
negative number, return <a>error</a> with <a>error code</a> <a>invalid
11322+
argument</a>.
11323+
1131611324
<li><p>Let <var>pageRanges</var> be the result of <a>getting a
1131711325
property with default</a> named "<code>pageRanges</code>" from
1131811326
<var>parameters</var> with default of an

0 commit comments

Comments
 (0)