css_ast/values/pointer_animations/
mod.rs

1// AUTO-GENERATED from w3c/csswg-drafts
2// Commit: https://github.com/w3c/csswg-drafts/commit/7e27ad7484307dfdbe9d0e18ad19d02859389688
3// Do not edit this file directly.
4#![allow(warnings)]
5//! https://drafts.csswg.org/pointer-animations-1/
6
7mod impls;
8use super::prelude::*;
9use impls::*;
10// /// Represents the style value for `animation-range-center` as defined in [pointer-animations-1](https://drafts.csswg.org/pointer-animations-1/#animation-range-center).
11// ///
12// /// The grammar is defined as:
13// ///
14// /// ```text,ignore
15// /// [ normal | [ <length-percentage> | <timeline-range-center-subject> <length-percentage>? ] ]#
16// /// ```
17// ///
18// /// https://drafts.csswg.org/pointer-animations-1/#animation-range-center
19// #[syntax(
20//     " [ normal | [ <length-percentage> | <timeline-range-center-subject> <length-percentage>? ] ]# "
21// )]
22// #[derive(
23//     Parse,
24//     Peek,
25//     ToSpan,
26//     ToCursors,
27//     DeclarationMetadata,
28//     SemanticEq,
29//     Debug,
30//     Clone,
31//     PartialEq,
32//     Eq,
33//     PartialOrd,
34//     Ord,
35//     Hash,
36// )]
37// #[declaration_metadata(
38//     initial = "normal",
39//     applies_to = Elements,
40//     percentages = Unknown,
41//     property_group = PointerAnimations,
42//     computed_value_type = Unknown,
43//     canonical_order = "per grammar",
44// )]
45// #[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
46// #[cfg_attr(
47//     feature = "css_feature_data",
48//     derive(ToCSSFeature),
49//     css_feature("css.properties.animation-range-center")
50// )]
51// #[cfg_attr(feature = "visitable", derive(Visitable), visit)]
52// #[derive(csskit_derives::NodeWithMetadata)]
53// pub struct AnimationRangeCenterStyleValue<'a>;
54
55/// Represents the style value for `pointer-timeline` as defined in [pointer-animations-1](https://drafts.csswg.org/pointer-animations-1/#pointer-timeline).
56///
57/// The grammar is defined as:
58///
59/// ```text,ignore
60/// [ <'pointer-timeline-name'> <'pointer-timeline-axis'>? ]#
61/// ```
62///
63/// https://drafts.csswg.org/pointer-animations-1/#pointer-timeline
64#[syntax(" [ <'pointer-timeline-name'> <'pointer-timeline-axis'>? ]# ")]
65#[derive(
66	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
67)]
68#[declaration_metadata(
69    initial = "see individual properties",
70    inherits = Unknown,
71    applies_to = Elements,
72    animation_type = Unknown,
73    percentages = Unknown,
74    property_group = PointerAnimations,
75    computed_value_type = Unknown,
76    canonical_order = "per grammar",
77)]
78#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
79#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.pointer-timeline"))]
80#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
81#[derive(csskit_derives::NodeWithMetadata)]
82pub struct PointerTimelineStyleValue<'a>;
83
84/// Represents the style value for `pointer-timeline-axis` as defined in [pointer-animations-1](https://drafts.csswg.org/pointer-animations-1/#pointer-timeline-axis).
85///
86/// The grammar is defined as:
87///
88/// ```text,ignore
89/// [ block | inline | x | y ]#
90/// ```
91///
92/// https://drafts.csswg.org/pointer-animations-1/#pointer-timeline-axis
93#[syntax(" [ block | inline | x | y ]# ")]
94#[derive(
95	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
96)]
97#[declaration_metadata(
98    initial = "block",
99    applies_to = Elements,
100    property_group = PointerAnimations,
101    computed_value_type = Unknown,
102    canonical_order = "per grammar",
103)]
104#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
105#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.pointer-timeline-axis"))]
106#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
107#[derive(csskit_derives::NodeWithMetadata)]
108pub struct PointerTimelineAxisStyleValue<'a>;
109
110/// Represents the style value for `pointer-timeline-name` as defined in [pointer-animations-1](https://drafts.csswg.org/pointer-animations-1/#pointer-timeline-name).
111///
112/// The grammar is defined as:
113///
114/// ```text,ignore
115/// [ none | <dashed-ident> ]#
116/// ```
117///
118/// https://drafts.csswg.org/pointer-animations-1/#pointer-timeline-name
119#[syntax(" [ none | <dashed-ident> ]# ")]
120#[derive(
121	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
122)]
123#[declaration_metadata(
124    initial = "none",
125    applies_to = Elements,
126    property_group = PointerAnimations,
127    computed_value_type = Unknown,
128    canonical_order = "per grammar",
129)]
130#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
131#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.pointer-timeline-name"))]
132#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
133#[derive(csskit_derives::NodeWithMetadata)]
134pub struct PointerTimelineNameStyleValue<'a>;