1#![allow(warnings)]
5mod impls;
8use super::prelude::*;
9use impls::*;
10#[syntax(" auto || <ratio> ")]
22#[derive(
23 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
24)]
25#[declaration_metadata(
26 initial = "auto",
27 applies_to = Unknown,
28 animation_type = ByComputedValue,
29 property_group = Sizing,
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.aspect-ratio"))]
35#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
36#[derive(csskit_derives::NodeWithMetadata)]
37pub struct AspectRatioStyleValue;
38
39#[syntax(" content-box | border-box ")]
51#[derive(
52 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
53)]
54#[declaration_metadata(
55 initial = "content-box",
56 applies_to = Unknown,
57 animation_type = Discrete,
58 property_group = Sizing,
59 computed_value_type = Unknown,
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.box-sizing"))]
64#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
65#[derive(csskit_derives::NodeWithMetadata)]
66pub enum BoxSizingStyleValue {}
67
68#[syntax(" auto? [ none | <length [0,∞]> ] ")]
80#[derive(
81 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
82)]
83#[declaration_metadata(
84 initial = "none",
85 applies_to = Unknown,
86 animation_type = ByComputedValue,
87 property_group = Sizing,
88 computed_value_type = AsSpecified,
89 canonical_order = "per grammar",
90 logical_property_group = ContainIntrinsicSize,
91 box_side = BlockStart|BlockEnd,
92)]
93#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
94#[cfg_attr(
95 feature = "css_feature_data",
96 derive(ToCSSFeature),
97 css_feature("css.properties.contain-intrinsic-block-size")
98)]
99#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
100#[derive(csskit_derives::NodeWithMetadata)]
101pub struct ContainIntrinsicBlockSizeStyleValue;
102
103#[syntax(" auto? [ none | <length [0,∞]> ] ")]
115#[derive(
116 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
117)]
118#[declaration_metadata(
119 initial = "none",
120 applies_to = Unknown,
121 animation_type = ByComputedValue,
122 shorthand_group = ContainIntrinsicSize,
123 property_group = Sizing,
124 computed_value_type = AsSpecified,
125 canonical_order = "per grammar",
126 logical_property_group = ContainIntrinsicSize,
127)]
128#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
129#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.contain-intrinsic-height"))]
130#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
131#[derive(csskit_derives::NodeWithMetadata)]
132pub struct ContainIntrinsicHeightStyleValue;
133
134#[syntax(" auto? [ none | <length [0,∞]> ] ")]
146#[derive(
147 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
148)]
149#[declaration_metadata(
150 initial = "none",
151 applies_to = Unknown,
152 animation_type = ByComputedValue,
153 property_group = Sizing,
154 computed_value_type = AsSpecified,
155 canonical_order = "per grammar",
156 logical_property_group = ContainIntrinsicSize,
157 box_side = InlineStart|InlineEnd,
158)]
159#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
160#[cfg_attr(
161 feature = "css_feature_data",
162 derive(ToCSSFeature),
163 css_feature("css.properties.contain-intrinsic-inline-size")
164)]
165#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
166#[derive(csskit_derives::NodeWithMetadata)]
167pub struct ContainIntrinsicInlineSizeStyleValue;
168
169#[syntax(" [ auto? [ none | <length [0,∞]> ] ]{1,2} ")]
181#[derive(
182 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
183)]
184#[declaration_metadata(
185 initial = "see individual properties",
186 inherits = Unknown,
187 applies_to = Unknown,
188 animation_type = Unknown,
189 percentages = Unknown,
190 longhands = ContainIntrinsicHeight|ContainIntrinsicWidth,
191 property_group = Sizing,
192 computed_value_type = Unknown,
193 canonical_order = "per grammar",
194)]
195#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
196#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.contain-intrinsic-size"))]
197#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
198#[derive(csskit_derives::NodeWithMetadata)]
199pub struct ContainIntrinsicSizeStyleValue;
200
201#[syntax(" auto? [ none | <length [0,∞]> ] ")]
213#[derive(
214 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
215)]
216#[declaration_metadata(
217 initial = "none",
218 applies_to = Unknown,
219 animation_type = ByComputedValue,
220 shorthand_group = ContainIntrinsicSize,
221 property_group = Sizing,
222 computed_value_type = AsSpecified,
223 canonical_order = "per grammar",
224 logical_property_group = ContainIntrinsicSize,
225)]
226#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
227#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.contain-intrinsic-width"))]
228#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
229#[derive(csskit_derives::NodeWithMetadata)]
230pub struct ContainIntrinsicWidthStyleValue;
231
232#[syntax(" auto | content-width | content-height | content-block-size | content-inline-size ")]
242#[derive(
243 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
244)]
245#[declaration_metadata(
246 initial = "auto",
247 applies_to = Unknown,
248 animation_type = Discrete,
249 property_group = Sizing,
250 computed_value_type = AsSpecified,
251 canonical_order = "per grammar",
252)]
253#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
254#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.frame-sizing"))]
255#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
256#[derive(csskit_derives::NodeWithMetadata)]
257pub enum FrameSizingStyleValue {}
258
259#[syntax(
271 " auto | <length-percentage [0,∞]> | min-content | max-content | fit-content(<length-percentage [0,∞]>) | <calc-size()> | stretch | fit-content | contain "
272)]
273#[derive(
274 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
275)]
276#[declaration_metadata(
277 initial = "auto",
278 applies_to = Unknown,
279 animation_type = ByComputedValue,
280 percentages = ContainingBlock,
281 property_group = Sizing,
282 computed_value_type = AsSpecified,
283 canonical_order = "per grammar",
284 logical_property_group = Size,
285 box_portion = Size,
286)]
287#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
288#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.height"))]
289#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
290#[derive(csskit_derives::NodeWithMetadata)]
291pub enum HeightStyleValue {}
292
293#[syntax(
305 " none | <length-percentage [0,∞]> | min-content | max-content | fit-content(<length-percentage [0,∞]>) | <calc-size()> | stretch | fit-content | contain "
306)]
307#[derive(
308 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
309)]
310#[declaration_metadata(
311 initial = "none",
312 applies_to = Unknown,
313 animation_type = ByComputedValue,
314 percentages = ContainingBlock,
315 property_group = Sizing,
316 computed_value_type = AsSpecified,
317 canonical_order = "per grammar",
318 logical_property_group = MaxSize,
319 box_portion = Size,
320)]
321#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
322#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.max-height"))]
323#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
324#[derive(csskit_derives::NodeWithMetadata)]
325pub enum MaxHeightStyleValue {}
326
327#[syntax(
339 " none | <length-percentage [0,∞]> | min-content | max-content | fit-content(<length-percentage [0,∞]>) | <calc-size()> | stretch | fit-content | contain "
340)]
341#[derive(
342 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
343)]
344#[declaration_metadata(
345 initial = "none",
346 applies_to = Unknown,
347 animation_type = ByComputedValue,
348 percentages = ContainingBlock,
349 property_group = Sizing,
350 computed_value_type = AsSpecified,
351 canonical_order = "per grammar",
352 logical_property_group = MaxSize,
353 box_portion = Size,
354)]
355#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
356#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.max-width"))]
357#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
358#[derive(csskit_derives::NodeWithMetadata)]
359pub enum MaxWidthStyleValue {}
360
361#[syntax(
373 " auto | <length-percentage [0,∞]> | min-content | max-content | fit-content(<length-percentage [0,∞]>) | <calc-size()> | stretch | fit-content | contain "
374)]
375#[derive(
376 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
377)]
378#[declaration_metadata(
379 initial = "auto",
380 applies_to = Unknown,
381 animation_type = ByComputedValue,
382 percentages = ContainingBlock,
383 property_group = Sizing,
384 computed_value_type = AsSpecified,
385 canonical_order = "per grammar",
386 logical_property_group = MinSize,
387 box_portion = Size,
388)]
389#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
390#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.min-height"))]
391#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
392#[derive(csskit_derives::NodeWithMetadata)]
393pub enum MinHeightStyleValue {}
394
395#[syntax(" legacy | zero-if-scroll || zero-if-extrinsic ")]
405#[derive(
406 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
407)]
408#[declaration_metadata(
409 initial = "legacy",
410 applies_to = Unknown,
411 animation_type = Discrete,
412 property_group = Sizing,
413 computed_value_type = AsSpecified,
414 canonical_order = "per grammar",
415)]
416#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
417#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.min-intrinsic-sizing"))]
418#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
419#[derive(csskit_derives::NodeWithMetadata)]
420pub enum MinIntrinsicSizingStyleValue {}
421
422#[syntax(
434 " auto | <length-percentage [0,∞]> | min-content | max-content | fit-content(<length-percentage [0,∞]>) | <calc-size()> | stretch | fit-content | contain "
435)]
436#[derive(
437 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
438)]
439#[declaration_metadata(
440 initial = "auto",
441 applies_to = Unknown,
442 animation_type = ByComputedValue,
443 percentages = ContainingBlock,
444 property_group = Sizing,
445 computed_value_type = AsSpecified,
446 canonical_order = "per grammar",
447 logical_property_group = MinSize,
448 box_portion = Size,
449)]
450#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
451#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.min-width"))]
452#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
453#[derive(csskit_derives::NodeWithMetadata)]
454pub enum MinWidthStyleValue {}
455
456#[syntax(
468 " auto | <length-percentage [0,∞]> | min-content | max-content | fit-content(<length-percentage [0,∞]>) | <calc-size()> | stretch | fit-content | contain "
469)]
470#[derive(
471 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
472)]
473#[declaration_metadata(
474 initial = "auto",
475 applies_to = Unknown,
476 animation_type = ByComputedValue,
477 percentages = ContainingBlock,
478 property_group = Sizing,
479 computed_value_type = AsSpecified,
480 canonical_order = "per grammar",
481 logical_property_group = Size,
482 box_portion = Size,
483)]
484#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
485#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.width"))]
486#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
487#[derive(csskit_derives::NodeWithMetadata)]
488pub enum WidthStyleValue {}