Menu Samaritan's Purse

SCROLLBAR-COLOR

The scrollbar-color property allows the author to set the colors of an element's scrollbars.

SYNTAX

CSS

scrollbar-color: value;

JS

object.style.scrollbarColor = "value";

VALUES

<'scrollbar-color'> = auto | dark | light | <color>{2}
auto

Automatically specified by the user agent.

dark

Show a dark scrollbar, which can be either a dark variant of scrollbar provided by the platform, or a custom scrollbar with dark colors.

light

Show a light scrollbar, which can be either a light variant of scrollbar provided by the platform, or a custom scrollbar with light colors.

<color>

Specifies the color using a keyword or a numerical specification.

INITIAL

auto

EXAMPLES

AUTO

COLOR

DARK

LIGHT

JS

INTERNAL

scrollbar-width

EXTERNAL

World Wide Web Consortium (W3C)