css_ast/values/color_hdr/
mod.rs

1#![allow(warnings)]
2//! CSS Color HDR Module Level 1
3//! https://drafts.csswg.org/css-color-hdr-1/
4
5mod impls;
6use impls::*;
7
8/// Represents the style value for `dynamic-range-limit` as defined in [css-color-hdr-1](https://drafts.csswg.org/css-color-hdr-1/#dynamic-range-limit).
9///
10/// The grammar is defined as:
11///
12/// ```text,ignore
13/// standard | no-limit | constrained | <dynamic-range-limit-mix()>
14/// ```
15///
16// https://drafts.csswg.org/css-color-hdr-1/#dynamic-range-limit
17#[syntax(" standard | no-limit | constrained | <dynamic-range-limit-mix()> ")]
18#[derive(Parse, Peek, ToSpan, ToCursors, StyleValue, Visitable, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
19#[style_value(
20	initial = "no-limit",
21	applies_to = "all elements",
22	inherited = "yes",
23	percentages = "n/a",
24	canonical_order = "per grammar",
25	animation_type = "by dynamic-range-limit-mix()"
26)]
27#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
28#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.dynamic-range-limit"))]
29#[visit]
30pub enum DynamicRangeLimitStyleValue<'a> {}