Skip to content

Commit 74496cd

Browse files
committed
[mediaqueries-5] Fix authoring advice so future UAs don't fall into unknown territory. w3c#3857 https://logs.csswg.org/irc.w3.org/css/2020-05-27/#e1319612 https://logs.csswg.org/irc.w3.org/css/2020-05-28/#e1319862
1 parent b0fe0a8 commit 74496cd

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

mediaqueries-5/Overview.bs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -831,9 +831,8 @@ Detecting the desire for light or dark color schemes: the 'prefers-color-scheme'
831831
(to express a more active preference for light color schemes,
832832
or preferences for other types of color schemes like "sepia").
833833
As such, the most future-friendly way to use this media feature
834-
is by directly testing against the values you wish to match,
835-
such as ''(prefers-color-scheme: light)'' and ''(prefers-color-scheme: dark)'',
836-
rather than by negation such as ''(prefers-color-scheme: light)'' and ''(not (prefers-color-scheme: light))''.
834+
is by negation such as ''(prefers-color-scheme: dark)'' and ''(not (prefers-color-scheme: dark))'',
835+
which ensures that new values fall into at least one of the styling blocks.
837836

838837
The method by which the user expresses their preference can vary.
839838
It might be a system-wide setting exposed by the Operating System,

0 commit comments

Comments
 (0)