css_ast/values/animation_triggers/
mod.rs

1// AUTO-GENERATED from w3c/csswg-drafts
2// Commit: https://github.com/w3c/csswg-drafts/commit/4bdaabd6c8def6e6f7d0423e118ecc3fff4f7e59
3// Do not edit this file directly.
4#![allow(warnings)]
5//! https://drafts.csswg.org/animation-triggers-1/
6
7mod impls;
8use super::prelude::*;
9use impls::*;
10/// Represents the style value for `animation-trigger` as defined in [animation-triggers-1](https://drafts.csswg.org/animation-triggers-1/#animation-trigger).
11///
12/// The grammar is defined as:
13///
14/// ```text,ignore
15/// [ none | [ <dashed-ident> <animation-action>+ ]+ ]#
16/// ```
17///
18/// https://drafts.csswg.org/animation-triggers-1/#animation-trigger
19#[syntax(" [ none | [ <dashed-ident> <animation-action>+ ]+ ]# ")]
20#[derive(
21	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
22)]
23#[declaration_metadata(
24    initial = "none",
25    applies_to = Elements,
26    property_group = AnimationTriggers,
27    computed_value_type = AsSpecified,
28    canonical_order = "per grammar",
29)]
30#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
31#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.animation-trigger"))]
32#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
33#[derive(csskit_derives::NodeWithMetadata)]
34pub struct AnimationTriggerStyleValue<'a>;
35
36/// Represents the style value for `event-trigger` as defined in [animation-triggers-1](https://drafts.csswg.org/animation-triggers-1/#event-trigger).
37///
38/// The grammar is defined as:
39///
40/// ```text,ignore
41/// none | [ <'event-trigger-name'> <'event-trigger-source'> ]#
42/// ```
43///
44/// https://drafts.csswg.org/animation-triggers-1/#event-trigger
45#[syntax(" none | [ <'event-trigger-name'> <'event-trigger-source'> ]# ")]
46#[derive(
47	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
48)]
49#[declaration_metadata(
50    initial = "none",
51    applies_to = Elements,
52    property_group = AnimationTriggers,
53    computed_value_type = AsSpecified,
54    canonical_order = "per grammar",
55)]
56#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
57#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.event-trigger"))]
58#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
59#[derive(csskit_derives::NodeWithMetadata)]
60pub struct EventTriggerStyleValue<'a>;
61
62/// Represents the style value for `event-trigger-name` as defined in [animation-triggers-1](https://drafts.csswg.org/animation-triggers-1/#event-trigger-name).
63///
64/// The grammar is defined as:
65///
66/// ```text,ignore
67/// none | <dashed-ident>#
68/// ```
69///
70/// https://drafts.csswg.org/animation-triggers-1/#event-trigger-name
71#[syntax(" none | <dashed-ident># ")]
72#[derive(
73	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
74)]
75#[declaration_metadata(
76    initial = "none",
77    applies_to = Elements,
78    property_group = AnimationTriggers,
79    computed_value_type = AsSpecified,
80    canonical_order = "per grammar",
81)]
82#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
83#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.event-trigger-name"))]
84#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
85#[derive(csskit_derives::NodeWithMetadata)]
86pub struct EventTriggerNameStyleValue<'a>;
87
88/// Represents the style value for `event-trigger-source` as defined in [animation-triggers-1](https://drafts.csswg.org/animation-triggers-1/#event-trigger-source).
89///
90/// The grammar is defined as:
91///
92/// ```text,ignore
93/// [ none | <event-trigger-event>+ [ / <event-trigger-event>+ ]? ]#
94/// ```
95///
96/// https://drafts.csswg.org/animation-triggers-1/#event-trigger-source
97#[syntax(" [ none | <event-trigger-event>+ [ / <event-trigger-event>+ ]? ]# ")]
98#[derive(
99	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
100)]
101#[declaration_metadata(
102    initial = "none",
103    applies_to = Elements,
104    property_group = AnimationTriggers,
105    computed_value_type = AsSpecified,
106    canonical_order = "per grammar",
107)]
108#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
109#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.event-trigger-source"))]
110#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
111#[derive(csskit_derives::NodeWithMetadata)]
112pub struct EventTriggerSourceStyleValue<'a>;
113
114/// Represents the style value for `timeline-trigger` as defined in [animation-triggers-1](https://drafts.csswg.org/animation-triggers-1/#timeline-trigger).
115///
116/// The grammar is defined as:
117///
118/// ```text,ignore
119/// none | [ <'timeline-trigger-name'> <'timeline-trigger-source'> <'timeline-trigger-activation-range'> [ '/' <'timeline-trigger-active-range'> ]? ]#
120/// ```
121///
122/// https://drafts.csswg.org/animation-triggers-1/#timeline-trigger
123#[syntax(
124	" none | [ <'timeline-trigger-name'> <'timeline-trigger-source'> <'timeline-trigger-activation-range'> [ '/' <'timeline-trigger-active-range'> ]? ]# "
125)]
126#[derive(
127	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
128)]
129#[declaration_metadata(
130    initial = "see individual properties",
131    inherits = Unknown,
132    applies_to = Unknown,
133    animation_type = Unknown,
134    percentages = Unknown,
135    property_group = AnimationTriggers,
136    computed_value_type = Unknown,
137    canonical_order = "per grammar",
138)]
139#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
140#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.timeline-trigger"))]
141#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
142#[derive(csskit_derives::NodeWithMetadata)]
143pub struct TimelineTriggerStyleValue<'a>;
144
145/// Represents the style value for `timeline-trigger-activation-range` as defined in [animation-triggers-1](https://drafts.csswg.org/animation-triggers-1/#timeline-trigger-activation-range).
146///
147/// The grammar is defined as:
148///
149/// ```text,ignore
150/// [ <'timeline-trigger-activation-range-start'> <'timeline-trigger-activation-range-end'>? ]#
151/// ```
152///
153/// https://drafts.csswg.org/animation-triggers-1/#timeline-trigger-activation-range
154#[syntax(" [ <'timeline-trigger-activation-range-start'> <'timeline-trigger-activation-range-end'>? ]# ")]
155#[derive(
156	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
157)]
158#[declaration_metadata(
159    initial = "see individual properties",
160    inherits = Unknown,
161    applies_to = Unknown,
162    animation_type = Unknown,
163    percentages = Unknown,
164    property_group = AnimationTriggers,
165    computed_value_type = Unknown,
166    canonical_order = "per grammar",
167)]
168#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
169#[cfg_attr(
170	feature = "css_feature_data",
171	derive(ToCSSFeature),
172	css_feature("css.properties.timeline-trigger-activation-range")
173)]
174#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
175#[derive(csskit_derives::NodeWithMetadata)]
176pub struct TimelineTriggerActivationRangeStyleValue<'a>;
177
178/// Represents the style value for `timeline-trigger-activation-range-end` as defined in [animation-triggers-1](https://drafts.csswg.org/animation-triggers-1/#timeline-trigger-activation-range-end).
179///
180/// The grammar is defined as:
181///
182/// ```text,ignore
183/// [ normal | <length-percentage> | <timeline-range-name> <length-percentage>? ]#
184/// ```
185///
186/// https://drafts.csswg.org/animation-triggers-1/#timeline-trigger-activation-range-end
187#[syntax(" [ normal | <length-percentage> | <timeline-range-name> <length-percentage>? ]# ")]
188#[derive(
189	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
190)]
191#[declaration_metadata(
192    initial = "normal",
193    applies_to = Elements,
194    percentages = Unknown,
195    property_group = AnimationTriggers,
196    computed_value_type = Unknown,
197    canonical_order = "per grammar",
198)]
199#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
200#[cfg_attr(
201	feature = "css_feature_data",
202	derive(ToCSSFeature),
203	css_feature("css.properties.timeline-trigger-activation-range-end")
204)]
205#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
206#[derive(csskit_derives::NodeWithMetadata)]
207pub struct TimelineTriggerActivationRangeEndStyleValue<'a>;
208
209/// Represents the style value for `timeline-trigger-activation-range-start` as defined in [animation-triggers-1](https://drafts.csswg.org/animation-triggers-1/#timeline-trigger-activation-range-start).
210///
211/// The grammar is defined as:
212///
213/// ```text,ignore
214/// [ normal | <length-percentage> | <timeline-range-name> <length-percentage>? ]#
215/// ```
216///
217/// https://drafts.csswg.org/animation-triggers-1/#timeline-trigger-activation-range-start
218#[syntax(" [ normal | <length-percentage> | <timeline-range-name> <length-percentage>? ]# ")]
219#[derive(
220	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
221)]
222#[declaration_metadata(
223    initial = "normal",
224    applies_to = Elements,
225    percentages = Unknown,
226    property_group = AnimationTriggers,
227    computed_value_type = Unknown,
228    canonical_order = "per grammar",
229)]
230#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
231#[cfg_attr(
232	feature = "css_feature_data",
233	derive(ToCSSFeature),
234	css_feature("css.properties.timeline-trigger-activation-range-start")
235)]
236#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
237#[derive(csskit_derives::NodeWithMetadata)]
238pub struct TimelineTriggerActivationRangeStartStyleValue<'a>;
239
240/// Represents the style value for `timeline-trigger-active-range` as defined in [animation-triggers-1](https://drafts.csswg.org/animation-triggers-1/#timeline-trigger-active-range).
241///
242/// The grammar is defined as:
243///
244/// ```text,ignore
245/// [ <'timeline-trigger-active-range-start'> <'timeline-trigger-active-range-end'>? ]#
246/// ```
247///
248/// https://drafts.csswg.org/animation-triggers-1/#timeline-trigger-active-range
249#[syntax(" [ <'timeline-trigger-active-range-start'> <'timeline-trigger-active-range-end'>? ]# ")]
250#[derive(
251	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
252)]
253#[declaration_metadata(
254    initial = "see individual properties",
255    inherits = Unknown,
256    applies_to = Unknown,
257    animation_type = Unknown,
258    percentages = Unknown,
259    property_group = AnimationTriggers,
260    computed_value_type = Unknown,
261    canonical_order = "per grammar",
262)]
263#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
264#[cfg_attr(
265	feature = "css_feature_data",
266	derive(ToCSSFeature),
267	css_feature("css.properties.timeline-trigger-active-range")
268)]
269#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
270#[derive(csskit_derives::NodeWithMetadata)]
271pub struct TimelineTriggerActiveRangeStyleValue<'a>;
272
273/// Represents the style value for `timeline-trigger-active-range-end` as defined in [animation-triggers-1](https://drafts.csswg.org/animation-triggers-1/#timeline-trigger-active-range-end).
274///
275/// The grammar is defined as:
276///
277/// ```text,ignore
278/// [ auto | normal | <length-percentage> | <timeline-range-name> <length-percentage>? ]#
279/// ```
280///
281/// https://drafts.csswg.org/animation-triggers-1/#timeline-trigger-active-range-end
282#[syntax(" [ auto | normal | <length-percentage> | <timeline-range-name> <length-percentage>? ]# ")]
283#[derive(
284	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
285)]
286#[declaration_metadata(
287    initial = "auto",
288    applies_to = Elements,
289    percentages = Unknown,
290    property_group = AnimationTriggers,
291    computed_value_type = Unknown,
292    canonical_order = "per grammar",
293)]
294#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
295#[cfg_attr(
296	feature = "css_feature_data",
297	derive(ToCSSFeature),
298	css_feature("css.properties.timeline-trigger-active-range-end")
299)]
300#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
301#[derive(csskit_derives::NodeWithMetadata)]
302pub struct TimelineTriggerActiveRangeEndStyleValue<'a>;
303
304/// Represents the style value for `timeline-trigger-active-range-start` as defined in [animation-triggers-1](https://drafts.csswg.org/animation-triggers-1/#timeline-trigger-active-range-start).
305///
306/// The grammar is defined as:
307///
308/// ```text,ignore
309/// [ auto | normal | <length-percentage> | <timeline-range-name> <length-percentage>? ]#
310/// ```
311///
312/// https://drafts.csswg.org/animation-triggers-1/#timeline-trigger-active-range-start
313#[syntax(" [ auto | normal | <length-percentage> | <timeline-range-name> <length-percentage>? ]# ")]
314#[derive(
315	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
316)]
317#[declaration_metadata(
318    initial = "auto",
319    applies_to = Elements,
320    percentages = Unknown,
321    property_group = AnimationTriggers,
322    computed_value_type = Unknown,
323    canonical_order = "per grammar",
324)]
325#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
326#[cfg_attr(
327	feature = "css_feature_data",
328	derive(ToCSSFeature),
329	css_feature("css.properties.timeline-trigger-active-range-start")
330)]
331#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
332#[derive(csskit_derives::NodeWithMetadata)]
333pub struct TimelineTriggerActiveRangeStartStyleValue<'a>;
334
335/// Represents the style value for `timeline-trigger-name` as defined in [animation-triggers-1](https://drafts.csswg.org/animation-triggers-1/#timeline-trigger-name).
336///
337/// The grammar is defined as:
338///
339/// ```text,ignore
340/// none | <dashed-ident>#
341/// ```
342///
343/// https://drafts.csswg.org/animation-triggers-1/#timeline-trigger-name
344#[syntax(" none | <dashed-ident># ")]
345#[derive(
346	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
347)]
348#[declaration_metadata(
349    initial = "none",
350    applies_to = Elements,
351    property_group = AnimationTriggers,
352    computed_value_type = AsSpecified,
353    canonical_order = "per grammar",
354)]
355#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
356#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.timeline-trigger-name"))]
357#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
358#[derive(csskit_derives::NodeWithMetadata)]
359pub struct TimelineTriggerNameStyleValue<'a>;
360
361/// Represents the style value for `timeline-trigger-source` as defined in [animation-triggers-1](https://drafts.csswg.org/animation-triggers-1/#timeline-trigger-source).
362///
363/// The grammar is defined as:
364///
365/// ```text,ignore
366/// <single-animation-timeline>#
367/// ```
368///
369/// https://drafts.csswg.org/animation-triggers-1/#timeline-trigger-source
370#[syntax(" <single-animation-timeline># ")]
371#[derive(
372	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
373)]
374#[declaration_metadata(
375    initial = "auto",
376    applies_to = Elements,
377    property_group = AnimationTriggers,
378    computed_value_type = Unknown,
379    canonical_order = "per grammar",
380)]
381#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
382#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.timeline-trigger-source"))]
383#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
384#[derive(csskit_derives::NodeWithMetadata)]
385pub struct TimelineTriggerSourceStyleValue<'a>;
386
387/// Represents the style value for `trigger-scope` as defined in [animation-triggers-1](https://drafts.csswg.org/animation-triggers-1/#trigger-scope).
388///
389/// The grammar is defined as:
390///
391/// ```text,ignore
392/// none | all | <dashed-ident>#
393/// ```
394///
395/// https://drafts.csswg.org/animation-triggers-1/#trigger-scope
396#[syntax(" none | all | <dashed-ident># ")]
397#[derive(
398	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
399)]
400#[declaration_metadata(
401    initial = "none",
402    applies_to = Elements,
403    property_group = AnimationTriggers,
404    computed_value_type = AsSpecified,
405    canonical_order = "per grammar",
406)]
407#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
408#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.trigger-scope"))]
409#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
410#[derive(csskit_derives::NodeWithMetadata)]
411pub enum TriggerScopeStyleValue<'a> {}