| Summary: | Safari does not respect width media query for printed media | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Ken <ken.sugiura> |
| Component: | CSS | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW --- | ||
| Severity: | Normal | CC: | ian, karlcow, koivisto, richard_robinson2, simon.fraser, webkit-bug-importer, webkit, zalan |
| Priority: | P2 | Keywords: | BrowserCompat, InRadar |
| Version: | Safari 15 | ||
| Hardware: | Mac (Apple Silicon) | ||
| OS: | macOS 11 | ||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=63575 | ||
| Bug Depends on: | 15548 | ||
| Bug Blocks: | |||
|
Description
Ken
2023-01-16 12:31:14 PST
In https://www.w3.org/TR/mediaqueries-3/#width > For paged media, this is the width of the page box (as described by CSS2, section 13.2 [CSS21]). -> https://www.w3.org/TR/CSS22/page.html There is also orientation and I do not have the feeling this is working either. ``` @media print and (orientation: landscape) { .box2 { border-color: #f00; } } ``` In https://w3c.github.io/csswg-drafts/mediaqueries/#orientation and this ``` @media print and (min-width: 21.1cm) { @page { size: A4 landscape; } .box2 { border-color: #f00; } } ``` it has an effect but not on changing the orientation in the print menu. I wonder if the Print menu of the OS communicates back the change of layout to WebKit. |