Skip to content

Commit 257383f

Browse files
committed
[css-color-adjust-1] Add note highlighting that color schemes don't guarantee particular colors. w3c#3983
1 parent d6f1df4 commit 257383f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

css-color-adjust-1/Overview.bs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,16 @@ Preferred Color Schemes {#preferred}
6060
defines controls to enable [=color scheme=] negotiation
6161
for “Light” and “Dark” [=color schemes=] (and no preference).
6262

63+
Note: <strong>The “Light” and “Dark” color schemes
64+
don't represent an exact color palette (such as black-and-white),
65+
but a range of possible palettes.
66+
To guarantee specific colors, authors must specify those colors themselves.</strong>
67+
Note also that, consequently,
68+
pairing default or <<system-color>> colors with author-specified colors
69+
cannot guarantee any particular contrast level;
70+
it might be necessary to set both foreground and background colors together
71+
to ensure legibility [[WCAG21]].
72+
6373
To enable pages to adapt to the user's preferred [=color scheme=],
6474
user agents will match the '@media/prefers-color-scheme' media query
6575
to the user's preferred [=color schemes=].

0 commit comments

Comments
 (0)