viewport units incorrect in print
Categories
(Core :: CSS Parsing and Computation, defect, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox81 | --- | fixed |
People
(Reporter: fantasai.bugs, Assigned: emilio)
References
Details
(Keywords: testcase, Whiteboard: [layout:print-triage:p2][print2020_v81], [wptsync upstream])
Attachments
(4 files)
Assignee | ||
Comment 1•7 years ago
|
||
Assignee | ||
Updated•7 years ago
|
Assignee | ||
Comment 2•7 years ago
|
||
Assignee | ||
Comment 3•7 years ago
|
||
Assignee | ||
Comment 4•7 years ago
|
||
Assignee | ||
Comment 5•7 years ago
|
||
Assignee | ||
Comment 6•7 years ago
|
||
Assignee | ||
Comment 7•7 years ago
|
||
Assignee | ||
Comment 8•7 years ago
|
||
Updated•7 years ago
|
Comment 9•7 years ago
|
||
Comment 10•5 years ago
|
||
This results in 2 pages in Firefox Print Preview vs 1 page in Chrome Print Preview.
This means any print regression tests using these units are also probably wrong... :(
Comment 11•5 years ago
•
|
||
I tend to think this is a Defect, not an Enhancement, and it seems like a compat issue we should try to address sooner rather than later.
Comment 12•5 years ago
|
||
This means any print regression tests using these units are also probably wrong... :(
Actually, it seems to be worse than I initially thought. In the "paged mode" we use for reftests (<html class="reftest-paged">
) it seems 100vh is sized to the viewport of the window's viewport rather than the viewport associated with the page.
So it appears that vh/vw is completely useless for writing regression tests using "reftest-paged" since it gives different results than in actual Print/Print Preview.
Updated•5 years ago
|
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 13•4 years ago
|
||
For that, move the default page margin computation to nsPresContext.
See https://github.com/w3c/csswg-drafts/issues/5437 as to why doing this
and other alternatives.
Assignee | ||
Updated•4 years ago
|
Updated•4 years ago
|
Comment 15•4 years ago
|
||
Comment 17•4 years ago
|
||
Backed out for reftest failures on mq_print_height.xhtml
backout: https://hg.mozilla.org/integration/autoland/rev/383d7d1d2d2f2b01b96181b9fec45a0cc3f89d65
failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=313384067&repo=autoland&lineNumber=31756
[task 2020-08-19T01:38:33.450Z] 01:38:33 INFO - REFTEST TEST-START | layout/reftests/css-mediaqueries/mq_print_height.xhtml == layout/reftests/css-mediaqueries/mq_print-ref.xhtml
[task 2020-08-19T01:38:33.450Z] 01:38:33 INFO - REFTEST TEST-LOAD | http://10.0.2.2:8854/tests/layout/reftests/css-mediaqueries/mq_print_height.xhtml | 5876 / 7234 (81%)
[task 2020-08-19T01:38:33.451Z] 01:38:33 INFO - REFTEST TEST-LOAD | http://10.0.2.2:8854/tests/layout/reftests/css-mediaqueries/mq_print-ref.xhtml | 5876 / 7234 (81%)
[task 2020-08-19T01:38:33.451Z] 01:38:33 INFO - REFTEST INFO | REFTEST fuzzy test (0, 0) <= (255, 367) <= (8, 454)
[task 2020-08-19T01:38:33.454Z] 01:38:33 WARNING - REFTEST TEST-UNEXPECTED-FAIL | layout/reftests/css-mediaqueries/mq_print_height.xhtml == layout/reftests/css-mediaqueries/mq_print-ref.xhtml | image comparison, max difference: 255, number of differing pixels: 367
Assignee | ||
Updated•4 years ago
|
Comment 18•4 years ago
|
||
Comment 20•4 years ago
|
||
bugherder |
Description
•