W3C home > Mailing lists > Public > public-css-archive@w3.org > November 2019

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

From: Chris Harrelson via GitHub <sysbot+gh@w3.org>
Date: Wed, 06 Nov 2019 22:49:29 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-518909075-1573080568-sysbot+gh@w3.org>
chrishtr has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-page-3] Add orientation descriptor ==
**TL;DR**
Add the ability to rotate the rendered output of a page, for use in cases such as PDF output, and as a hint to printing code & devices.

**Details**
Currently, the level 3 paged media spec has a [size](https://drafts.csswg.org/css-page-3/#page-size-prop) property. This specifies the per-page constraints on layout.

It would be useful to also have an `orientation` descriptor, which could have values of `portrait` and `landscape` (*). This indicates the orientation of the final rendered page itself, without affecting layout. For example, if content had:

```
size: letter landscape
orientation: portrait
```

It would mean to layout the content in landscape layout mode, but then rotate the resulting rendered page sideways. If the print ended up in a PDF, then a user viewing the PDF would see the page visually rendered with height taller than width, and the content rotated 90 degrees.

This is useful in order to customize the visual display of a PDF, which is a very common way to "print" web pages.

(*) Alternatively, it could have three (four?) values: none, rotate-right, rotate-left (, upside-down?)

@xfq @fantasai 

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4491 using your GitHub account
Received on Wednesday, 6 November 2019 22:49:31 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:56 UTC