Skip to content

Commit ec5d382

Browse files
author
Raphael Kubo da Costa
committed
Remove references to the light-level CSS media feature.
It was removed from the Media Queries Level 5 spec in w3c/csswg-drafts@f5b663c27d5a in favor of the `prefers-contrast` and `prefers-color-scheme` media features. Reword the paragraph to mention those instead. While here, change the biblio for the `matchMedia` API from CSSOM to CSSOM-VIEW-1, which is where it is actually specified.
1 parent c3469b4 commit ec5d382

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

index.bs

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,18 @@ which require fine grained illuminance data, with low latency, and possibly
7070
sampled at high frequencies.
7171

7272
Common use cases relying on a small set of illuminance values, such as styling
73-
webpages according to ambient light levels are best served by the the
74-
`light-level` CSS media feature [[MEDIAQUERIES-5]] and its accompanying
75-
`matchMedia` API [[CSSOM]] and are out of scope of this API.
76-
77-
Note: it might be worthwhile to provide a <a>high-level</a> Light Level Sensor
78-
which would mirror the `light-level` media feature, but in JavaScript.
79-
This sensor would *not require additional user permission to be activated*
80-
in user agents that exposed the `light-level` media feature.
73+
webpages according to contrast level or preferred color scheme that may be
74+
influenced a device's measured ambient light level are best served by the the
75+
`prefers-contrast` and `prefers-color-scheme` CSS media features
76+
[[MEDIAQUERIES-5]] as well as the accompanying `matchMedia` API
77+
[[CSSOM-VIEW-1]] and are out of scope of this API.
78+
79+
Note: The [[MEDIAQUERIES-5]] specification used to contain a `light-level`
80+
media feature that was more directly tied to ambient light readings. It has
81+
since been <a
82+
href="https://github.com/w3c/csswg-drafts/commit/f5b663c27d5a2715239633f4916880563969d770">dropped</a>
83+
from the specification in favor of the higher-level `prefers-color-scheme` and
84+
`prefers-contrast` media features.
8185

8286
Examples {#examples}
8387
========

0 commit comments

Comments
 (0)