Skip to main content

css_ast/values/color_hdr/
mod.rs

1// AUTO-GENERATED from w3c/csswg-drafts
2// Commit: https://github.com/w3c/csswg-drafts/commit/e8f0279ce0beff5d70e59fa4165a668e1527fff6
3// Do not edit this file directly.
4#![allow(warnings)]
5//! https://drafts.csswg.org/css-color-hdr-1/
6
7mod impls;
8use super::prelude::*;
9use impls::*;
10/// 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).
11///
12/// The dynamic-range-limit CSS property controls the peak luminance of high dynamic range content. You can use this to coordinate the apparent brightness of HDR and SDR content.
13///
14/// The grammar is defined as:
15///
16/// ```text,ignore
17/// standard | no-limit | constrained | <dynamic-range-limit-mix()>
18/// ```
19///
20/// https://drafts.csswg.org/css-color-hdr-1/#dynamic-range-limit
21#[syntax(" standard | no-limit | constrained | <dynamic-range-limit-mix()> ")]
22#[derive(
23	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
24)]
25#[declaration_metadata(
26    initial = "no-limit",
27    inherits,
28    applies_to = Elements,
29    animation_type = Unknown,
30    property_group = ColorHdr,
31    computed_value_type = Unknown,
32    canonical_order = "per grammar",
33)]
34#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
35#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.dynamic-range-limit"))]
36#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
37#[derive(csskit_derives::NodeWithMetadata)]
38pub enum DynamicRangeLimitStyleValue<'a> {}