- From: Mike Bremford via GitHub <sysbot+gh@w3.org>
- Date: Mon, 21 Oct 2019 23:01:53 +0000
- To: public-css-archive@w3.org
According to https://www.w3.org/TR/css-page-3/#fixed-sizing, `width` and `height` do apply to paged media. If they are specified, they set the size of the page "content" box, and `size` is ignored. Just for completeness, because I haven't seen it suggested yet: `size` in the `@page` context is effectively setting the margin box on the page. I don't know how often the `width` and `height` properties are used instead to specify page sizes, but as this option is new in CSS3 I'd expect it's a lot less common than `size`. So another option would be to introduce `margin-box` as a new values for `box-sizing`, and use that as the default in the page context. If you allow for a few special values (like "A4" as an alias for "210mm 297mm"), then size becomes the shorthand for width/height without any need to rename anything. The cost is if anyone is using `width` and `height` to set the page size, they would need to add a new `box-sizing: context-box` declaration to their `@page` rule. -- GitHub Notification of comment by faceless2 Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/820#issuecomment-544743757 using your GitHub account
Received on Monday, 21 October 2019 23:01:55 UTC