Expand description
Servo’s media-query device and expression representation.
Structs§
- Device
- A device is a structure that represents the current media a given document is displayed in.
Enums§
- Scan 🔒
Statics§
- MEDIA_
FEATURES - A list with all the media features that Servo supports.
Traits§
- Font
Metrics Provider - A trait used to query font metrics in clients of Stylo. This is used by Device to query font metrics in a way that is specific to the client using Stylo.
Functions§
- eval_
device_ 🔒pixel_ ratio - https://compat.spec.whatwg.org/#css-media-queries-webkit-device-pixel-ratio
- eval_
prefers_ 🔒color_ scheme - eval_
resolution 🔒 - https://drafts.csswg.org/mediaqueries-4/#resolution
- eval_
scan 🔒 - https://drafts.csswg.org/mediaqueries-4/#scan
- eval_
width 🔒 - https://drafts.csswg.org/mediaqueries-4/#width