Skip to content

Commit 63d8dc4

Browse files
authored
Merge pull request w3c#3113 from upsuper/scrollbar-color-contrast
[css-scrollbar] Add text for contrast concern of scrollbar colors
2 parents c631566 + af3e57f commit 63d8dc4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

css-scrollbars-1/Overview.bs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,12 @@ PNG of the same in a browser that supports it currently)
126126
Implementations may ignore any of the colors
127127
if the corresponding part do not exist on the underlying platform.
128128

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

0 commit comments

Comments
 (0)