Skip to main content

css_ast/values/pointer_animations/
mod.rs

1// AUTO-GENERATED from w3c/csswg-drafts
2// Commit: https://github.com/w3c/csswg-drafts/commit/ddbceaa3cee88f134d557c3051c26fcb5554a535
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(" [ normal | [ <length-percentage> | <timeline-range-center-subject> <length-percentage>? ] ]# ")]
20#[derive(
21	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
22)]
23#[declaration_metadata(
24    initial = "normal",
25    applies_to = Elements,
26    percentages = Unknown,
27    property_group = PointerAnimations,
28    computed_value_type = Unknown,
29    canonical_order = "per grammar",
30)]
31#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
32#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.animation-range-center"))]
33#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
34#[derive(csskit_derives::NodeWithMetadata)]
35pub struct AnimationRangeCenterStyleValue<'a>;
36
37/// Represents the style value for `pointer-timeline` as defined in [pointer-animations-1](https://drafts.csswg.org/pointer-animations-1/#pointer-timeline).
38///
39/// The grammar is defined as:
40///
41/// ```text,ignore
42/// [ <'pointer-timeline-name'> <'pointer-timeline-axis'>? ]#
43/// ```
44///
45/// https://drafts.csswg.org/pointer-animations-1/#pointer-timeline
46#[syntax(" [ <'pointer-timeline-name'> <'pointer-timeline-axis'>? ]# ")]
47#[derive(
48	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
49)]
50#[declaration_metadata(
51    initial = "see individual properties",
52    inherits = Unknown,
53    applies_to = Elements,
54    animation_type = Unknown,
55    percentages = Unknown,
56    property_group = PointerAnimations,
57    computed_value_type = Unknown,
58    canonical_order = "per grammar",
59)]
60#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
61#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.pointer-timeline"))]
62#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
63#[derive(csskit_derives::NodeWithMetadata)]
64pub struct PointerTimelineStyleValue<'a>;
65
66/// Represents the style value for `pointer-timeline-axis` as defined in [pointer-animations-1](https://drafts.csswg.org/pointer-animations-1/#pointer-timeline-axis).
67///
68/// The grammar is defined as:
69///
70/// ```text,ignore
71/// [ block | inline | x | y ]#
72/// ```
73///
74/// https://drafts.csswg.org/pointer-animations-1/#pointer-timeline-axis
75#[syntax(" [ block | inline | x | y ]# ")]
76#[derive(
77	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
78)]
79#[declaration_metadata(
80    initial = "block",
81    applies_to = Elements,
82    property_group = PointerAnimations,
83    computed_value_type = Unknown,
84    canonical_order = "per grammar",
85)]
86#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
87#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.pointer-timeline-axis"))]
88#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
89#[derive(csskit_derives::NodeWithMetadata)]
90pub struct PointerTimelineAxisStyleValue<'a>;
91
92/// Represents the style value for `pointer-timeline-name` as defined in [pointer-animations-1](https://drafts.csswg.org/pointer-animations-1/#pointer-timeline-name).
93///
94/// The grammar is defined as:
95///
96/// ```text,ignore
97/// [ none | <dashed-ident> ]#
98/// ```
99///
100/// https://drafts.csswg.org/pointer-animations-1/#pointer-timeline-name
101#[syntax(" [ none | <dashed-ident> ]# ")]
102#[derive(
103	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
104)]
105#[declaration_metadata(
106    initial = "none",
107    applies_to = Elements,
108    property_group = PointerAnimations,
109    computed_value_type = Unknown,
110    canonical_order = "per grammar",
111)]
112#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
113#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.pointer-timeline-name"))]
114#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
115#[derive(csskit_derives::NodeWithMetadata)]
116pub struct PointerTimelineNameStyleValue<'a>;