(un-)applying "overflow: clip" on the root element doesn't toggle scrollbar visibility
Categories
(Core :: Layout: Scrolling and Overflow, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox153 | --- | fixed |
People
(Reporter: oss, Assigned: hiro)
Details
Attachments
(2 files)
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/147.0.0.0 Safari/537.36
Steps to reproduce:
- Visit the attached reproduction
- press the button
- Observe scrollbar staying visible
This issue is specific to Gecko - both WebKit and Blink repaint correctly.
Actual results:
Scrollbar visibility remains unchanged.
Expected results:
Scroll container state should be removed, thereby scrollbar visibility should change.
Comment 1•10 days 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.
| Assignee | ||
Comment 2•9 days ago
|
||
Per the css-overflow propagation rule [1], 'visible' on the viewport is
interpreted as 'auto' and 'clip' is interpreted as 'hidden'. So dynamically
toggling the root element's overflow between 'visible' and 'clip' changes
the viewport's propagated scrollbar styles between 'auto' and 'hidden'.
[1] https://drafts.csswg.org/css-overflow/#overflow-propagation
Updated•9 days ago
|
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/59974 for changes under testing/web-platform/tests
Comment 5•9 days ago
|
||
| bugherder | ||
Upstream PR merged by moz-wptsync-bot
Description
•