Closed Bug 2086751 Opened 29 days ago Closed 25 days ago

test_viewport_scrollbar_causing_reflow.html fails when run alone (standalone variant)

Categories

(Core :: CSS Parsing and Computation, task)

task

Tracking

()

RESOLVED FIXED
161 Branch
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

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.

Blocks: 2086769
Attachment #9670729 - Attachment description: Bug 2086751 - Hide viewport scrollbars in test_viewport_scrollbar_causing_reflow.html so it passes when run alone, r=#firefox-style-system-reviewers. → Bug 2086751 - Allow for real viewport scrollbars in test_viewport_scrollbar_causing_reflow.html, r=#firefox-style-system-reviewers.
Pushed by fqueze@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/c8dd105f2af8 https://hg.mozilla.org/integration/autoland/rev/42178a2f518b Allow for real viewport scrollbars in test_viewport_scrollbar_causing_reflow.html, r=firefox-style-system-reviewers,emilio.
Status: ASSIGNED → RESOLVED
Closed: 25 days ago
Resolution: --- → FIXED
Target Milestone: --- → 161 Branch
QA Whiteboard: [qa-triage-done-c162/b161]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: