Skip to content

Commit b3ad057

Browse files
authored
RFC 173 - Use @page for print refests (#173)
1 parent 49a4921 commit b3ad057

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

rfcs/page-size.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# RFC 173 - `@page` Rules in Print Tests
2+
3+
[RFC 41](https://github.com/web-platform-tests/rfcs/blob/master/rfcs/print_test.md) added support for print reftests. It specified a fixed page size of "5 inches by 3 inches with 0.5 inch margins on all sides".
4+
5+
CSS allows modifying the size and margins of paginated media using an [`@page` rule](https://developer.mozilla.org/en-US/docs/Web/CSS/@page). Per the letter of the previous RFC these rules would be ignored for wpt tests, making the rule itself impossible to test.
6+
7+
To enable testing different paper sizes and margins, this RFC amends the print reftest support, so that where an `@page` rule is specififed in a test or reference file, it overrides the default paper size when generating the paginated rendering of the document.

0 commit comments

Comments
 (0)