[wpt-sync] Sync PR 31865 - Remove 'font-size: 0' from some css-flexbox scrollbars reference cases.
Categories
(Core :: Layout: Flexbox, task, P4)
Tracking
()
| 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.)
| Assignee | ||
Updated•3 years ago
|
| Assignee | ||
Comment 1•3 years ago
|
||
| Assignee | ||
Comment 3•3 years ago
|
||
Comment 4•3 years ago
|
||
| bugherder | ||
Description
•