css_ast/values/transitions/
mod.rs1#![allow(warnings)]
2mod impls;
6use impls::*;
7
8#[syntax(" none | <single-transition-property># ")]
20#[derive(Parse, Peek, ToSpan, ToCursors, StyleValue, Visitable, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
21#[style_value(
22 initial = "all",
23 applies_to = "all elements",
24 inherited = "no",
25 percentages = "n/a",
26 canonical_order = "per grammar",
27 animation_type = "not animatable"
28)]
29#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
30#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.transition-property"))]
31#[visit]
32pub struct TransitionPropertyStyleValue<'a>;
33
34#[syntax(" <time [0s,∞]># ")]
46#[derive(Parse, Peek, ToSpan, ToCursors, StyleValue, Visitable, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
47#[style_value(
48 initial = "0s",
49 applies_to = "all elements",
50 inherited = "no",
51 percentages = "n/a",
52 canonical_order = "per grammar",
53 animation_type = "not animatable"
54)]
55#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
56#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.transition-duration"))]
57#[visit]
58pub struct TransitionDurationStyleValue<'a>;
59
60#[syntax(" <easing-function># ")]
72#[derive(Parse, Peek, ToSpan, ToCursors, StyleValue, Visitable, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
73#[style_value(
74 initial = "ease",
75 applies_to = "all elements",
76 inherited = "no",
77 percentages = "n/a",
78 canonical_order = "per grammar",
79 animation_type = "not animatable"
80)]
81#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
82#[cfg_attr(
83 feature = "css_feature_data",
84 derive(ToCSSFeature),
85 css_feature("css.properties.transition-timing-function")
86)]
87#[visit]
88pub struct TransitionTimingFunctionStyleValue<'a>;
89
90#[syntax(" <time># ")]
102#[derive(Parse, Peek, ToSpan, ToCursors, StyleValue, Visitable, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
103#[style_value(
104 initial = "0s",
105 applies_to = "all elements",
106 inherited = "no",
107 percentages = "n/a",
108 canonical_order = "per grammar",
109 animation_type = "not animatable"
110)]
111#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
112#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.transition-delay"))]
113#[visit]
114pub struct TransitionDelayStyleValue<'a>;
115
116#[syntax(" <single-transition># ")]
128#[derive(Parse, Peek, ToSpan, ToCursors, StyleValue, Visitable, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
129#[style_value(
130 initial = "see individual properties",
131 applies_to = "all elements",
132 inherited = "no",
133 percentages = "n/a",
134 canonical_order = "per grammar",
135 animation_type = "not animatable"
136)]
137#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
138#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.transition"))]
139#[visit]
140pub struct TransitionStyleValue<'a>;
141
142#[syntax(" <transition-behavior-value># ")]
154#[derive(Parse, Peek, ToSpan, ToCursors, StyleValue, Visitable, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
155#[style_value(
156 initial = "normal",
157 applies_to = "all elements",
158 inherited = "no",
159 percentages = "n/a",
160 canonical_order = "per grammar",
161 animation_type = "not animatable"
162)]
163#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
164#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.transition-behavior"))]
165#[visit]
166pub struct TransitionBehaviorStyleValue<'a>;