Reftest inline-block-slice-7.html changes its layout if you make trivial tweaks to print settings
Categories
(Core :: Printing: Output, defect)
Tracking
()
People
(Reporter: dholbert, Unassigned)
Details
Attachments
(2 files)
STR:
- Load inline-block-slice-7.html as it currently stands (attached as "testcase 1")
- Ctrl+P to view it in print-preview.
- In advanced settings, check "print backgrounds" and then uncheck it.
EXPECTED RESULTS:
No change in the layout.
ACTUAL RESULTS:
The layout changes.
TYLin noticed this in bug 1926809 comment 7, and is fixing the test so that our in-tree version stops triggering this inconsistency & intermittently failing due to it.
I'm spinning off this bug to track the inconsistency, which presumably remains.
Reporter | ||
Comment 1•4 months ago
|
||
Here's a reduced testcase -- it looks like this issue happens when we mix @page {size}
with viewport units.
With this testcase, the content is shrunk super-tiny when I first load this testcase, and then suddenly it becomes readable when I click/unclick "print backgrounds". (This is with "Scale: fit to page width")
If I print-preview this testcase with "Scale: 100%", then on the initial rendering, the div's right border is clipped, and on the second rendering (after toggling print-backgrounds), the div's right border fits just fine.
The problem is probably that we resolve the viewport-units against the default page-size in the first print-preview-rendering, and then we resolve them against the actual @page size on subsequent renderings.
Reporter | ||
Comment 2•4 months ago
|
||
Actually, this is probably a dupe of bug 1835108, sort-of. The fact that our layout is unstable is new information, I think, but bug 1835108 tracks the fact that our initial layout produces unexpected results for the vw/vh
resolution.
Description
•