Enum lightningcss::media_query::MediaFeatureId
source · pub enum MediaFeatureId {
Show 39 variants
Width,
Height,
AspectRatio,
Orientation,
OverflowBlock,
OverflowInline,
HorizontalViewportSegments,
VertialViewportSegments,
DisplayMode,
Resolution,
Scan,
Grid,
Update,
EnvironmentBlending,
Color,
ColorIndex,
Monochrome,
ColorGamut,
DynamicRange,
InvertedColors,
Pointer,
Hover,
AnyPointer,
AnyHover,
NavControls,
VideoColorGamut,
VideoDynamicRange,
Scripting,
PrefersReducedMotion,
PrefersReducedTransparency,
PrefersContrast,
ForcedColors,
PrefersColorScheme,
PrefersReducedData,
DeviceWidth,
DeviceHeight,
DeviceAspectRatio,
WebKitDevicePixelRatio,
MozDevicePixelRatio,
}
Expand description
A media query feature identifier.
Variants§
Width
The width media feature.
Height
The height media feature.
AspectRatio
The aspect-ratio media feature.
Orientation
The orientation media feature.
OverflowBlock
The overflow-block media feature.
OverflowInline
The overflow-inline media feature.
HorizontalViewportSegments
The horizontal-viewport-segments media feature.
VertialViewportSegments
The vertical-viewport-segments media feature.
DisplayMode
The display-mode media feature.
Resolution
The resolution media feature.
Scan
The scan media feature.
Grid
The grid media feature.
Update
The update media feature.
EnvironmentBlending
The environment-blending media feature.
Color
The color media feature.
ColorIndex
The color-index media feature.
Monochrome
The monochrome media feature.
ColorGamut
The color-gamut media feature.
DynamicRange
The dynamic-range media feature.
InvertedColors
The inverted-colors media feature.
Pointer
The pointer media feature.
Hover
The hover media feature.
AnyPointer
The any-pointer media feature.
AnyHover
The any-hover media feature.
The nav-controls media feature.
VideoColorGamut
The video-color-gamut media feature.
VideoDynamicRange
The video-dynamic-range media feature.
Scripting
The scripting media feature.
PrefersReducedMotion
The prefers-reduced-motion media feature.
PrefersReducedTransparency
The prefers-reduced-transparency media feature.
PrefersContrast
The prefers-contrast media feature.
ForcedColors
The forced-colors media feature.
PrefersColorScheme
The prefers-color-scheme media feature.
PrefersReducedData
The prefers-reduced-data media feature.
DeviceWidth
The device-width media feature.
DeviceHeight
The device-height media feature.
DeviceAspectRatio
The device-aspect-ratio media feature.
WebKitDevicePixelRatio
The non-standard -webkit-device-pixel-ratio media feature.
MozDevicePixelRatio
The non-standard -moz-device-pixel-ratio media feature.
Implementations§
Trait Implementations§
source§impl Clone for MediaFeatureId
impl Clone for MediaFeatureId
source§fn clone(&self) -> MediaFeatureId
fn clone(&self) -> MediaFeatureId
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MediaFeatureId
impl Debug for MediaFeatureId
source§impl<'de> Deserialize<'de> for MediaFeatureId
impl<'de> Deserialize<'de> for MediaFeatureId
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
source§impl JsonSchema for MediaFeatureId
impl JsonSchema for MediaFeatureId
source§fn schema_name() -> String
fn schema_name() -> String
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read moresource§impl<'i> Parse<'i> for MediaFeatureId
impl<'i> Parse<'i> for MediaFeatureId
source§fn parse<'t>(
input: &mut Parser<'i, 't>
) -> Result<Self, ParseError<'i, ParserError<'i>>>
fn parse<'t>( input: &mut Parser<'i, 't> ) -> Result<Self, ParseError<'i, ParserError<'i>>>
source§fn parse_string(input: &'i str) -> Result<Self, ParseError<'i, ParserError<'i>>>
fn parse_string(input: &'i str) -> Result<Self, ParseError<'i, ParserError<'i>>>
source§impl PartialEq<MediaFeatureId> for MediaFeatureId
impl PartialEq<MediaFeatureId> for MediaFeatureId
source§fn eq(&self, other: &MediaFeatureId) -> bool
fn eq(&self, other: &MediaFeatureId) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for MediaFeatureId
impl Serialize for MediaFeatureId
source§impl ToCss for MediaFeatureId
impl ToCss for MediaFeatureId
source§fn to_css<W>(
&self,
dest: &mut Printer<'_, '_, '_, W>
) -> Result<(), PrinterError>where
W: Write,
fn to_css<W>( &self, dest: &mut Printer<'_, '_, '_, W> ) -> Result<(), PrinterError>where W: Write,
self
in CSS syntax, writing to dest
.source§fn to_css_string(
&self,
options: PrinterOptions<'_>
) -> Result<String, PrinterError>
fn to_css_string( &self, options: PrinterOptions<'_> ) -> Result<String, PrinterError>
self
in CSS syntax and return a string. Read moresource§impl<'i, __T: Visit<'i, __T, __V>, __V: Visitor<'i, __T>> Visit<'i, __T, __V> for MediaFeatureId
impl<'i, __T: Visit<'i, __T, __V>, __V: Visitor<'i, __T>> Visit<'i, __T, __V> for MediaFeatureId
source§const CHILD_TYPES: VisitTypes = _
const CHILD_TYPES: VisitTypes = _
visitor
only.