Skip to main content

Module media

Module media 

Source
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::default is a 1280×720 colour screen at 1dppx with a fine pointer that can hover, light colour scheme, no preferences set.
MediaQueryList
A comma-separated list of media queries: what @media and the media attribute hold.
QueryLengths
What a query’s relative lengths are relative to. For a media query that’s all the environment; a container query’s em is the container’s, and its cq* units are the container’s own query containers’.

Enums§

Comparison
Condition
A media condition.
Feature
( … ) in a query.
FeatureValue
A value in a media feature.
MediaQuery
One media query.
MediaType
Qualifier