Closed Bug 1744171 Opened 3 years ago Closed 3 years ago

[wpt-sync] Sync PR 31865 - Remove 'font-size: 0' from some css-flexbox scrollbars reference cases.

Categories

(Core :: Layout: Flexbox, task, P4)

task

Tracking

()

RESOLVED FIXED
97 Branch
Tracking Status
firefox97 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 31865 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/31865
Details from upstream follow.

Daniel Holbert <dholbert@cs.stanford.edu> wrote:

Remove 'font-size: 0' from some css-flexbox scrollbars reference cases.

The zero font-size is essentially non-functional, but it causes a slight
rendering difference in Firefox's scrollbar-thumb-sizing (and results in a test
failure), for what turns out to be good reasons:

Essentially, the scrollbar thumb is a reflection of the pagedown-distance; and
in Firefox, we use a slightly-larger pagedown-distance if the scrollport has a
sufficiently-small font size, because we only aim to have a few lines of
overlap between the old and new scrollport during a pagedown operation. And "a
few lines of overlap" is based on the scrollport's font-size. So the
pagedown-distance is dependent on the font-size, and therefore so is the
scrollbar thumb size.

(See https://bugzilla.mozilla.org/show_bug.cgi?id=1743924#c9 for more.)

Component: web-platform-tests → Layout: Flexbox
Product: Testing → Core
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8fb675af670b [wpt PR 31865] - Remove 'font-size: 0' from some css-flexbox scrollbars reference cases., a=testonly
Test result changes from PR not available.
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 97 Branch
You need to log in before you can comment on or make changes to this bug.