Re: [csswg-drafts] [css-page-3] Add orientation descriptor (#4491)

> So this `orientation` descriptor can be used to force the PDF rendering to conform to that of the printed rendering, right? On all my landscape pages, I can set `orientation` to "rotate-left" or "rotate-right" depending on whether the page is `:left` or `:right`, and it'll render exactly as it would in the stack-of-paper.

It's the other way around. As far as the layout engine of the browser would be concerned, each page has a base layout size of portrait, and would be laid out accordingly. Therefore, without an `orientation` descriptor, the tabular pages would look sideways be hard to read. With `orientation`, the PDF output would know to rotate that page to the preferred orientation of the most important (i.e. the tabular) content.

-- 
GitHub Notification of comment by chrishtr
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4491#issuecomment-590619411 using your GitHub account

Received on Tuesday, 25 February 2020 00:32:39 UTC