1#![allow(warnings)]
5mod impls;
8use super::prelude::*;
9use impls::*;
10#[syntax(" visible | hidden ")]
22#[derive(
23 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
24)]
25#[declaration_metadata(
26 initial = "visible",
27 applies_to = Unknown,
28 animation_type = Discrete,
29 property_group = Transforms,
30 computed_value_type = Unknown,
31 canonical_order = "per grammar",
32)]
33#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
34#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.backface-visibility"))]
35#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
36#[derive(csskit_derives::NodeWithMetadata)]
37pub enum BackfaceVisibilityStyleValue {}
38
39#[syntax(" none | <length [0,∞]> ")]
51#[derive(
52 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
53)]
54#[declaration_metadata(
55 initial = "none",
56 applies_to = Unknown,
57 animation_type = ByComputedValue,
58 property_group = Transforms,
59 computed_value_type = AbsoluteLengthOrNone,
60 canonical_order = "per grammar",
61)]
62#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
63#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.perspective"))]
64#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
65#[derive(csskit_derives::NodeWithMetadata)]
66pub struct PerspectiveStyleValue;
67
68#[syntax(" <position> ")]
80#[derive(
81 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
82)]
83#[declaration_metadata(
84 initial = "50% 50%",
85 applies_to = Unknown,
86 animation_type = ByComputedValue,
87 percentages = ReferenceBox,
88 property_group = Transforms,
89 computed_value_type = Unknown,
90 canonical_order = "per grammar",
91)]
92#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
93#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.perspective-origin"))]
94#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
95#[derive(csskit_derives::NodeWithMetadata)]
96pub struct PerspectiveOriginStyleValue;
97
98#[syntax(" none | [ <number> | <percentage> ]{1,3} ")]
155#[derive(
156 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
157)]
158#[declaration_metadata(
159 initial = "none",
160 applies_to = Unknown,
161 animation_type = ByComputedValue,
162 property_group = Transforms,
163 computed_value_type = Unknown,
164 canonical_order = "per grammar",
165)]
166#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
167#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.scale"))]
168#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
169#[derive(csskit_derives::NodeWithMetadata)]
170pub struct ScaleStyleValue;
171
172#[syntax(" none | <transform-list> ")]
184#[derive(
185 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
186)]
187#[declaration_metadata(
188 initial = "none",
189 applies_to = Unknown,
190 animation_type = TransformList,
191 percentages = ReferenceBox,
192 property_group = Transforms,
193 computed_value_type = AsSpecified,
194 canonical_order = "per grammar",
195)]
196#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
197#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.transform"))]
198#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
199#[derive(csskit_derives::NodeWithMetadata)]
200pub struct TransformStyleValue<'a>;
201
202#[syntax(" content-box | border-box | fill-box | stroke-box | view-box ")]
214#[derive(
215 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
216)]
217#[declaration_metadata(
218 initial = "view-box",
219 applies_to = Unknown,
220 animation_type = Discrete,
221 property_group = Transforms,
222 computed_value_type = Unknown,
223 canonical_order = "per grammar",
224)]
225#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
226#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.transform-box"))]
227#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
228#[derive(csskit_derives::NodeWithMetadata)]
229pub enum TransformBoxStyleValue {}
230
231#[syntax(" <position-one> | <position-two> <length>? ")]
243#[derive(
244 Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
245)]
246#[declaration_metadata(
247 initial = "50% 50%",
248 applies_to = Unknown,
249 animation_type = ByComputedValue,
250 percentages = ReferenceBox,
251 property_group = Transforms,
252 computed_value_type = Unknown,
253 canonical_order = "per grammar",
254)]
255#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
256#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.transform-origin"))]
257#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
258#[derive(csskit_derives::NodeWithMetadata)]
259pub enum TransformOriginStyleValue {}
260
261#[syntax(" flat | preserve-3d ")]
273#[derive(
274 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
275)]
276#[declaration_metadata(
277 initial = "flat",
278 applies_to = Unknown,
279 animation_type = Discrete,
280 property_group = Transforms,
281 computed_value_type = Unknown,
282 canonical_order = "per grammar",
283)]
284#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
285#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.transform-style"))]
286#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
287#[derive(csskit_derives::NodeWithMetadata)]
288pub enum TransformStyleStyleValue {}
289
290#[syntax(" none | <length-percentage> [ <length-percentage> <length>? ]? ")]
302#[derive(
303 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
304)]
305#[declaration_metadata(
306 initial = "none",
307 applies_to = Unknown,
308 animation_type = ByComputedValue,
309 percentages = ReferenceBox,
310 property_group = Transforms,
311 computed_value_type = AbsoluteLengthOrPercentage,
312 canonical_order = "per grammar",
313)]
314#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
315#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.translate"))]
316#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
317#[derive(csskit_derives::NodeWithMetadata)]
318pub struct TranslateStyleValue;