content icon indicating copy to clipboard operation
content copied to clipboard

docs(css): Add more details about scrollbar-color and scrollbar-width props, hints for fallback

Open bsmth opened this issue 1 year ago • 1 comments
trafficstars

Description

This PR adds some more details to the note about scrollbar-color and scrollbar-width props including a fallback example.

Motivation

Some people are not expecting to see styles overridden if scrollbar-color and scrollbar-width are specified in combination with non-standard ::-webkit-scrollbar pseudo-elements.

Additional details

  • https://developer.chrome.com/blog/new-in-chrome-121
  • https://developer.chrome.com/docs/css-ui/scrollbar-styling (includes example using @supports for fallback)
  • https://groups.google.com/a/chromium.org/g/blink-dev/c/PkEsMirl2zE

Related issues and pull requests

Fixes #32277

  • https://github.com/mdn/browser-compat-data/issues/22195

bsmth avatar Feb 15 '24 12:02 bsmth

Preview URLs

External URLs (6)

URL: /en-US/docs/Web/CSS/::-webkit-scrollbar Title: ::-webkit-scrollbar

(comment last updated: 2024-02-23 09:35:46)

github-actions[bot] avatar Feb 15 '24 12:02 github-actions[bot]

Thanks @estelle - incorporated changes based on your comments if you'd like to have another look 👀

bsmth avatar Feb 22 '24 10:02 bsmth

Thank you! Merging shortly 🚢

bsmth avatar Feb 23 '24 09:02 bsmth