Expand description
Media queries, Media Queries Level 5: a <media-query-list> parsed,
written back as CSSOM’s mediaText writes it, and evaluated against
an Environment you give, with the three-valued logic §3.2 has, so
a feature nobody knows makes its query false rather than an error.
Structs§
- Environment
- What a media query is evaluated against: the viewport and the device.
Environment::defaultis a 1280×720 colour screen at 1dppx with a fine pointer that can hover, light colour scheme, no preferences set. - Media
Query List - A comma-separated list of media queries: what
@mediaand themediaattribute hold. - Query
Lengths - What a query’s relative lengths are relative to. For a media query
that’s all the environment; a container query’s
emis the container’s, and itscq*units are the container’s own query containers’.
Enums§
- Comparison
- Condition
- A media condition.
- Feature
( … )in a query.- Feature
Value - A value in a media feature.
- Media
Query - One media query.
- Media
Type - Qualifier