File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -328,18 +328,20 @@ Forced Color Schemes: the 'forced-color-adjust' property {#forced}
328
328
through the CSS system colors
329
329
(see [[CSS-COLOR-4]] ).
330
330
Additionally,
331
- if the UA determines ( based on Lab lightness) ,
331
+ if the UA determines, based on Lab lightness,
332
332
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%),
335
334
then it must match the appropriate value
336
335
of the '@media/prefers-color-scheme' media query
337
336
and express a corresponding user preference for 'color-scheme' .
338
337
This will allow pages that support light/dark color schemes
339
338
to automatically adjust to more closely match
340
339
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.
343
345
344
346
<!--THOUGHTS
345
347
This advice (below) maybe makes sense for (prefers-contrast),
You can’t perform that action at this time.
0 commit comments