[wpt-sync] Sync PR 41222 - Printing: Better width/height media query evaluation.
Categories
(Core :: CSS Parsing and Computation, task, P4)
Tracking
()
Tracking | Status | |
---|---|---|
firefox118 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 41222 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/41222
Details from upstream follow.
Morten Stenshorne <mstensho@chromium.org> wrote:
Printing: Better width/height media query evaluation.
ResizeForPrinting() in PrepareFrameAndViewForPrint temporarily changed
the size of the frame as an attempt to affect the media query evaluation
code in Blink. But there are better ways. Just add some awareness to
Blink, and remove ResizeForPrinting() and RestoreSize().Note that we still use sizes based on the page area, and not the page
box, but now without being affected by any @page size and margins, as
suggested by the spec, although the spec says to use the page box size
(i.e. including margins). This approach has some interoperability.
Discussion: https://github.com/w3c/csswg-drafts/issues/5437Namedropping https://crbug.com/734815, since there are complaints there
about the behavior of ResizeForPrinting().Bug: 1117050, 734815
Change-Id: Ifd18c53b581380cffd807540aa2bfacfb8e0eca1
Reviewed-on: https://chromium-review.googlesource.com/4727725
WPT-Export-Revision: 2d83a179e4692abd9ca609a7bdd41fd6e31aff6c
Assignee | ||
Updated•1 year ago
|
Assignee | ||
Comment 1•1 year ago
|
||
Assignee | ||
Comment 2•1 year ago
|
||
CI Results
Ran 6 Firefox configurations based on mozilla-central, and Firefox, and Chrome on GitHub CI
Total 1 tests
Status Summary
Firefox
PASS
: 1
Chrome
FAIL
: 1
Links
Comment 4•1 year ago
|
||
bugherder |
Description
•