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

> It also means that we're privileging the "view as printed/bound" case over the "view on the web" cases

The orientation descriptor is just for printed output. I think it's ok to have a few CSS properties that are just for controlling printing. Printing is part of the web after all. These orientation descriptors should only be within an @media print section.

For a "view on the web" mode of the same site, if there is content that is best viewed with a landscape aspect ratio, then the site should just lay out the content in a landscape manner; there are many ways to do that already. What is different about printing (or PDF viewing) is that there is a physical or virtual page that is external to the web on which content is printed. The system that might view a PDF can't re-do layout, it can only rotate around the page.

> Then the "legacy tools output portrait-oriented bitmaps" would use this by putting the intended-landscape image on a `size: landscape` page

In addition to my other arguments about why this is not the best way to do it, there is a very practical one, which I alluded to in my previous comment when I said the "limited support". To support `size: landscape` properly without violating specs is very difficult, and a multi-year project for Chromium. I'm presuming the same is true of other UAs to greater or lesser extent.

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

Received on Tuesday, 25 February 2020 02:47:58 UTC