Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scrollbar-color: interactions with other features #26419

Merged
merged 3 commits into from
Apr 26, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions files/en-us/web/css/scrollbar-color/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ The **track** refers to the background of the scrollbar, which is generally fixe

The **thumb** refers to the moving part of the scrollbar, which usually floats on top of the track.

When `scrollbar-color` value is set on the document's root element, the values are applied to the viewport scrollbars.

## Syntax

```css
Expand Down Expand Up @@ -56,7 +58,7 @@ scrollbar-color: unset;
</tbody>
</table>

> **Note:** User Agents must apply any `scrollbar-color` value set on the root element to the viewport.
> **Note:** [`@media (forced-colors: active)`](/en-US/docs/Web/CSS/@media/forced-colors) sets {{cssxref("scrollbar-color")}} to `auto`.

## Accessibility concerns

Expand Down Expand Up @@ -111,5 +113,6 @@ When using `scrollbar-color` property with specific color values, authors should

## See also

- [`scrollbar-width`](/en-US/docs/Web/CSS/scrollbar-width)
- [`overflow`](/en-US/docs/Web/CSS/overflow)
- [`scrollbar-width`](/en-US/docs/Web/CSS/scrollbar-width)
- [CSS scrollbars styling](/en-US/docs/Web/CSS/CSS_Scrollbars) module