Skip to content

Commit d7b76e9

Browse files
committed
[css-color-adjust-1] More precise requirements for deriving color schemes from forced color backgrounds per #3983 (comment)
1 parent f01c678 commit d7b76e9

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

css-color-adjust-1/Overview.bs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -328,18 +328,20 @@ Forced Color Schemes: the 'forced-color-adjust' property {#forced}
328328
through the CSS system colors
329329
(see [[CSS-COLOR-4]]).
330330
Additionally,
331-
if the UA determines (based on Lab lightness),
331+
if the UA determines, based on Lab lightness,
332332
that the canvas color
333-
is clearly either dark or light
334-
(for some reasonable UA delineation of “dark” or “light”),
333+
is clearly either dark (L < 33%) or light (L > 67%),
335334
then it must match the appropriate value
336335
of the '@media/prefers-color-scheme' media query
337336
and express a corresponding user preference for 'color-scheme'.
338337
This will allow pages that support light/dark color schemes
339338
to automatically adjust to more closely match
340339
the forced color scheme.
341-
Note that medium-lightness forced backgrounds may yield
342-
a '@media/prefers-color-scheme' of ''prefers-color-scheme/no-preference''.
340+
Behavior between the above dark vs. light thresholds
341+
is UA-defined,
342+
and may result in assuming either
343+
''prefers-color-scheme/light'', ''prefers-color-scheme/dark'', or ''prefers-color-scheme/no-preference''
344+
as the user’s preferred color scheme.
343345

344346
<!--THOUGHTS
345347
This advice (below) maybe makes sense for (prefers-contrast),

0 commit comments

Comments
 (0)