Removes the overflow:overlay scrolling mode, and makes overlay a legacy alias of auto. overflow:overlay is the same as overflow:auto, except that it does not prevent content from extending into the scrollbar gutter, in cases where non-overlay OS scrollbars are present. (If overlay scrollbars are present, there is no effect.) Example: With overflow:overlay: https://output.jsbin.com/yujenuq/quiet With overflow:auto: https://output.jsbin.com/ruzogaf/quiet
Developers currently relying on content overlapping the scrollbar gutter would instead see some additional line wrapping. Users, on the other hand, would be able to see more content that is currently invisible underneath a scrollbar. On platform configurations with overlay scrollbars in the OS, this change has no effect; it only applies to situations where a non-overlay scrollbar is configured by the browser. Use counter: https://chromestatus.com/metrics/feature/timeline/popularity/2995 Adoption is more than 2% of page loads.
Sites might not know why their line wrapping changed to exclude the scrollbar gutter. However, this is the existing behavior in Firefox and Safari, so they would get interop by default.
Shipping on desktop | 114 |
DevTrial on desktop | 114 |
Shipping on Android | 114 |
DevTrial on Android | 114 |
Shipping on WebView | 114 |
Contact emails
chri...@chromium.org
Specification
https://drafts.csswg.org/css-overflow-3/#valdef-overflow-auto
Summary
Removes the overflow:overlay scrolling mode, and makes overlay a legacy alias of auto. overflow:overlay is the same as overflow:auto, except that it does not prevent content from extending into the scrollbar gutter, in cases where non-overlay OS scrollbars are present. (If overlay scrollbars are present, there is no effect.) Example: With overflow:overlay: https://output.jsbin.com/yujenuq/quiet With overflow:auto: https://output.jsbin.com/ruzogaf/quiet
Blink component
Blink>Scroll
TAG review
TAG review status
Not applicable
Risks
Interoperability and Compatibility
Developers currently relying on content overlapping the scrollbar gutter would instead see some additional line wrapping. Users, on the other hand, would be able to see more content that is currently invisible underneath a scrollbar.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAOMQ%2Bw-F4mOhUMuU3nw423C8CurZKX_wxQvXRPv-XT4Zhsm-XQ%40mail.gmail.com.
On Fri, Mar 31, 2023 at 2:37 AM Chris Harrelson <chri...@chromium.org> wrote:Contact emails
chri...@chromium.org
Specification
https://drafts.csswg.org/css-overflow-3/#valdef-overflow-auto
Summary
Removes the overflow:overlay scrolling mode, and makes overlay a legacy alias of auto. overflow:overlay is the same as overflow:auto, except that it does not prevent content from extending into the scrollbar gutter, in cases where non-overlay OS scrollbars are present. (If overlay scrollbars are present, there is no effect.) Example: With overflow:overlay: https://output.jsbin.com/yujenuq/quiet With overflow:auto: https://output.jsbin.com/ruzogaf/quiet
Which platforms would one see a difference between these two? (I'm not seeing a difference on MacOS)
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAL5BFfWTkzPKzCF9gGdVHzXKVzDsv921OD-u_JTJv-muV3pkoQ%40mail.gmail.com.
On Tue, Apr 4, 2023 at 9:21 PM Yoav Weiss <yoav...@chromium.org> wrote:On Fri, Mar 31, 2023 at 2:37 AM Chris Harrelson <chri...@chromium.org> wrote:Contact emails
chri...@chromium.org
Specification
https://drafts.csswg.org/css-overflow-3/#valdef-overflow-auto
Summary
Removes the overflow:overlay scrolling mode, and makes overlay a legacy alias of auto. overflow:overlay is the same as overflow:auto, except that it does not prevent content from extending into the scrollbar gutter, in cases where non-overlay OS scrollbars are present. (If overlay scrollbars are present, there is no effect.) Example: With overflow:overlay: https://output.jsbin.com/yujenuq/quiet With overflow:auto: https://output.jsbin.com/ruzogaf/quiet
Which platforms would one see a difference between these two? (I'm not seeing a difference on MacOS)To see a difference you will have to turn on non-overlay scrollbars in the macOS settings. This feature only has an effect for cases where the OS provides non-overlay scrollbars.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/02dd8a9c-a13a-4cf4-baf2-3eeab761b394n%40chromium.org.
Thanks for the link Chris.Unfortunately that does not work for my use-case as it's very important for my UX that the margins are perfectly balanced in the un-hover state. So as ugly as the layout shift is, it's actually better than always having the scrollbar impinging, visible or otherwise.In that thread I see you also mentioned that work is being done to support cross platform overlay style bars for chromium (Awesome!). Can we just rollback this deprecation until that work is completed so myself and other users of this feature (however fringe) can continue using modern versions of chromium? Otherwise I'll have to stay on an old version of Electron/Chromium until the new overlay support is available.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAHxQA0H1jS1QAUS_6-%2B5GL3U-psw%3DcYfFrCuJpknGSKTcT1bpw%40mail.gmail.com.