Skip to content

[mediaqueries-5] Clarify definition and use cases for light-level feature #1727

@alexshalamov

Description

@alexshalamov

Spec: https://drafts.csswg.org/mediaqueries-5/#descdef-media-light-level

We had a discussion about ambient light sensor use cases, security and privacy, in particular how light-level is mapped to ambient light sensor measurements.

From the MQ5 spec, it looks like the main use case is web content contrast adjustment / accessibility.

The spec defines the light-level as:

"The light-level media feature is used to query about the ambient light-level in which the device is used"

then later:

"this specification intentionally refrains from defining the three levels in terms of a measurement in lux"

That sounds like light-level values are not directly mapped to ambient light (lux) values in which device is used.

Would it be better to define light-level as a hint, whose values would be derived from ambient light measurements, screen brightness, screen technology, etc. Based on the hint, web page could adjust contrast ratio.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions