Closed Bug 1839401 Opened 11 months ago Closed 7 months ago

Issue with invalidation of scrollbar-gutter CSS property

Categories

(Core :: Layout: Scrolling and Overflow, defect, P3)

Firefox 116
defect

Tracking

()

VERIFIED FIXED
121 Branch
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

https://wpt.fyi/results/css/css-overflow/scrollbar-gutter-dynamic-002.html?label=experimental&label=master&aligned

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)

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.

Component: Untriaged → Layout: Scrolling and Overflow
Product: Firefox → Core

Looks like we misthink the overflow:hidden and no overflowed contents case doesn't need scrollbar-gutter: stable?

Severity: -- → S3
Priority: -- → P3

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?)

Depends on: 1715112
Assignee: nobody → aethanyc
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true

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.

Attachment #9359885 - Attachment description: Bug 1839401 - Reframe for vertical scrollbar with dynamic changes to scrollbar-gutter:stable. → Bug 1839401 - Get scrollbar-gutter size from theme instead of scrollbar frame.
Attachment #9359920 - Attachment description: Bug 1839401 - Add a helper to get non-overlay scrollbar width. → Bug 1839401 - Add a helper to get non-overlay scrollbar size.
Pushed by aethanyc@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/5533a368b99c
Add a helper to get non-overlay scrollbar size. r=emilio
https://hg.mozilla.org/integration/autoland/rev/e8381cd51f42
Get scrollbar-gutter size from theme instead of scrollbar frame. r=emilio
Status: ASSIGNED → RESOLVED
Closed: 7 months ago
Resolution: --- → FIXED
Target Milestone: --- → 121 Branch
Flags: qe-verify+

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.

Status: RESOLVED → VERIFIED
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: