Issue with invalidation of scrollbar-gutter CSS property
Categories
(Core :: Layout: Scrolling and Overflow, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox121 | --- | verified |
People
(Reporter: lwarlow, Assigned: TYLin)
References
Details
Attachments
(2 files)
Steps to reproduce:
Load this WPT https://wpt.live/css/css-overflow/scrollbar-gutter-dynamic-002.html
Actual results:
Results can be seen here https://wpt.fyi/analyzer?screenshot=sha1%3Ae137eb47783ec0c399db652a8297add58f76b455&screenshot=sha1%3Ae2fe47a3a296fede5dacb9960b9e0e8008f56980
Expected results:
This test should pass.
There seems to be an issue when an element has overflow hidden and goes from scrollbar-gutter auto to scrollbar-gutter stable both-edges (potentially other invalidations too this is just the one the test caught)
Comment 1•1 year ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Layout: Scrolling and Overflow' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Comment 2•1 year ago
|
||
Looks like we misthink the overflow:hidden
and no overflowed contents case doesn't need scrollbar-gutter: stable
?
Reporter | ||
Comment 3•1 year ago
|
||
https://fiddle.jshell.net/fqkgp73u/9/show/?editor_console= - Based on this quick test script it seems when it's overflow hidden invalidating from auto to both stable OR stable both-edges is broken at least some times. (Weirdly editing through DevTools seems to work?)
Comment hidden (obsolete) |
Updated•1 year ago
|
Assignee | ||
Comment 5•1 year ago
|
||
GetNondisappearingScrollbarWidth()
is not used. Its last caller has been
removed in bug 1762873. So I transform it into a helper getting non-overlay
scrollbar width from theme.
Updated•1 year ago
|
Updated•1 year ago
|
Comment 7•1 year ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/5533a368b99c
https://hg.mozilla.org/mozilla-central/rev/e8381cd51f42
Updated•11 months ago
|
Comment 8•11 months ago
|
||
Reproduced with Fx 116.0a1 (2023-06-20) on Windows 10.
Verified fixed with Fx 122.0a1 (2023-11-28) and Fx 121.0b4 on Windows 10.
Description
•