Skip to content

Commit af3e57f

Browse files
committed
[css-scrollbar] Add text for contrast concern of scrollbar colors
1 parent 1b8b6c0 commit af3e57f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

css-scrollbars-1/Overview.bs

+6
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,12 @@ PNG of the same in a browser that supports it currently)
114114
Implementations may ignore any of the colors
115115
if the corresponding part do not exist on the underlying platform.
116116

117+
When using scrollbar-color property with specific color values,
118+
authors should ensure the specified colors have enough contrast between them.
119+
For keyword values, UAs should ensure the colors they use have enough contrast.
120+
See <a href="https://www.w3.org/TR/WCAG20-TECHS/G183.html">
121+
Techniques for WCAG 2.0: G183: Using a contrast ratio of 3:1 […]</a> [[WCAG20]].
122+
117123
Note: when a user interacts with a scrollbar (e.g. hovering or activating),
118124
implementations may alter which scrollbar colors apply to which scrollbar parts.
119125

0 commit comments

Comments
 (0)