Bug 176018

Summary: Width is not recalculated after 'overflow' value change (with "Show scroll bars: always")
Product: WebKit Reporter: Tomasz Sodzawiczny <tsodzawiczny>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: ap, bfulgham, simon.fraser, zalan
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Mac   
OS: macOS 10.12   

Tomasz Sodzawiczny
Reported 2017-08-28 04:24:39 PDT
The bug occurs when system preferences are set to always show scroll (on macOS: System Preferences > General > Show scroll bars: Always). With this setting, the scrollbar actually takes space from the container (scrollbar width is subtracted from the available width before sizing the children). When changing the overflow property from 'auto' to 'hidden' the scrollbar disappears (as expected) but the children elements width is not recalculated to fill the newly freed space. See demo at: https://jsfiddle.net/qmury15r/ (The demo works flawlessly on FF/Chrome).
Attachments
Note You need to log in before you can comment on or make changes to this bug.