Closed Bug 1859823 Opened 1 year ago Closed 10 months ago

page-size-006-print.html fails on all platforms (it's annotated as passing on mac, but only because both screenshots end up blank there)

Categories

(Core :: Printing: Output, defect)

defect

Tracking

()

RESOLVED FIXED

People

(Reporter: dholbert, Unassigned)

References

Details

In bug 1833244, we updated the page-size-006-print.html annotation to reflect it now passing-on-Mac:
https://searchfox.org/mozilla-central/rev/ac497ae160e664617e2f4286cdce3b03ef912d90/testing/web-platform/meta/css/printing/page-size-006-print.html.ini#4

In fact, it appears we're rendering the testcase as being blank. (I checked this by adding a yellow background to the reference case, to force a mismatch so as to generate visible reftest-analyzer output.)

On Linux, we render the testcase non-blank, with text shown at different positions (which is why we fail and the test is annotated as failing there). You can see our failing rendering at https://wpt.fyi/results/css/printing/page-size-006-print.html . (Other browsers are shown as failing there, too, but their failure seems to just be that the x-position of the text is off-by-1px or so.)

Depends on: 1859830

(In reply to Daniel Holbert [:dholbert] from comment #0)

On Linux, we render the testcase non-blank, with text shown at different positions

This seems to be due to us failing to apply the styles from the :first pseudo-class in this testcase, as discussed in bug 1859830. If I add body { page: a } to the testcase, then that's sufficient to work around that bug, and the test passes on my Linux machine.

Fixed by bug 1859830.

Status: NEW → RESOLVED
Closed: 10 months ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.