#515: CSS page-orientation descriptor

Visit on Github.

Opened May 20, 2020

Hello TAG!

I'm requesting a TAG review of the page-orientation descriptor, which is part of the CSS Paged Media Module.

The page-orientation descriptor can be used to set the orientation of a named page, so that it appears rotated in print preview, and also when saving paginated layout to file (e.g. PDF). Page orientation does not affect layout; any rotation is applied after layout.

The Paged Media spec has a 'size' descriptor, which can also be used to set the orientation of a page indirectly, but this also affects layout. The new page-orientation descriptor is different, in that it just rotates all the layout, including any headers and footers. Printed pages may be presented together as a pamphlet or book, which essentially means that every page has the same size, and that the reader is supposed to turn the book or pamphlet 90 degrees when reading rotated pages. External formatting systems, such as word processors, may do page layout on their own and even push the output to a CANVAS, rather than individual DOM nodes. Such web-based word processors can also often support page sizings that are more advanced or specialized than what the user agent is capable of providing.

[1]

Further details:

  • I have reviewed the TAG's API Design Principles
  • The group where the work on this specification is currently being done: Google
  • The group where standardization of this work is intended to be done (if current group is a community group or other incubation venue): CSSWG

This feature is actively being worked on in Chromium. Intent to prototype: https://groups.google.com/u/2/a/chromium.org/g/blink-dev/c/ByWuVBk1lFE/m/vAfiloyPBAAJ

We'd prefer the TAG provide feedback as (please delete all but the desired option):

💬 leave review feedback as a comment in this issue and @-notify @chrishtr @mstensho @tabatkins

Discussions