test_viewport_scrollbar_causing_reflow.html fails when run alone (standalone variant)
Categories
(Core :: CSS Parsing and Computation, task)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox161 | --- | fixed |
People
(Reporter: florian, Assigned: florian)
References
(Blocks 1 open bug)
Details
Attachments
(1 external file)
layout/style/test/test_viewport_scrollbar_causing_reflow.html fails every time when run on its own, which is how the mochitest-plain standalone variant runs it (skipped there since bug 2026600): "Reflow count when changing 'overflow' on body (32) shouldn't be greater than count for tweaking width/height on body (23)".
The harness gives #testframe scrolling="no" only when it runs several tests, so in CI chunks the viewport scrollbars never take space and the reflow limits were tuned for that. When the test runs alone, real scrollbars appear and add reflows, independent of the page content, beyond the 2-frame leeway.
Fix: set scrollbar-width: none on the test's root, which restores the geometry the test has always had in chunked runs, and remove the standalone skip-if.
Test dashboard: https://tests.firefox.dev/test.html?test=layout/style/test/test_viewport_scrollbar_causing_reflow.html
| Assignee | ||
Comment 1•29 days ago
|
||
The harness gives the test iframe scrolling="no" only when running several
tests, so the reflow limits were only ever tuned for scrollbars that take no
space. Run alone (the standalone variant, skipped since bug 2026600), real
scrollbars appear and add reflows beyond the 2-frame leeway. The extra count
doesn't depend on the page content.
Hiding the scrollbars restores the geometry the test has always had in
chunked runs, which is the only setup in which it has guarded bug 1367568.
Updated•29 days ago
|
Comment 3•25 days ago
|
||
| bugherder | ||
Updated•17 days ago
|
Description
•