1#![allow(warnings)]
5mod impls;
8use super::prelude::*;
9use impls::*;
10#[syntax(" none | [ <'flex-grow'> <'flex-shrink'>? || <'flex-basis'> ] ")]
22#[derive(
23 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
24)]
25#[declaration_metadata(
26 initial = "0 1 auto",
27 applies_to = Unknown,
28 animation_type = ByComputedValue,
29 percentages = Unknown,
30 longhands = FlexBasis|FlexGrow|FlexShrink,
31 property_group = Flexbox,
32 computed_value_type = Unknown,
33 canonical_order = "per grammar",
34)]
35#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
36#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.flex"))]
37#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
38#[derive(csskit_derives::NodeWithMetadata)]
39pub struct FlexStyleValue;
40
41#[syntax(" content | <'width'> ")]
53#[derive(
54 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
55)]
56#[declaration_metadata(
57 initial = "auto",
58 applies_to = Unknown,
59 animation_type = ByComputedValue,
60 percentages = FlexContainer,
61 shorthand_group = Flex,
62 property_group = Flexbox,
63 computed_value_type = Unknown,
64 canonical_order = "per grammar",
65)]
66#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
67#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.flex-basis"))]
68#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
69#[derive(csskit_derives::NodeWithMetadata)]
70pub enum FlexBasisStyleValue {}
71
72#[syntax(" row | row-reverse | column | column-reverse ")]
84#[derive(
85 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
86)]
87#[declaration_metadata(
88 initial = "row",
89 applies_to = Flex,
90 animation_type = Discrete,
91 shorthand_group = FlexFlow,
92 property_group = Flexbox,
93 computed_value_type = Unknown,
94 canonical_order = "per grammar",
95)]
96#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
97#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.flex-direction"))]
98#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
99#[derive(csskit_derives::NodeWithMetadata)]
100pub enum FlexDirectionStyleValue {}
101
102#[syntax(" <'flex-direction'> || <'flex-wrap'> ")]
114#[derive(
115 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
116)]
117#[declaration_metadata(
118 initial = "see individual properties",
119 inherits = Unknown,
120 applies_to = Unknown,
121 animation_type = Unknown,
122 percentages = Unknown,
123 longhands = FlexDirection|FlexWrap,
124 property_group = Flexbox,
125 computed_value_type = Unknown,
126 canonical_order = "per grammar",
127)]
128#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
129#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.flex-flow"))]
130#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
131#[derive(csskit_derives::NodeWithMetadata)]
132pub struct FlexFlowStyleValue;
133
134#[syntax(" <number [0,∞]> ")]
146#[derive(
147 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
148)]
149#[declaration_metadata(
150 initial = "0",
151 applies_to = Unknown,
152 animation_type = ByComputedValue,
153 shorthand_group = Flex,
154 property_group = Flexbox,
155 computed_value_type = Unknown,
156 canonical_order = "per grammar",
157)]
158#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
159#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.flex-grow"))]
160#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
161#[derive(csskit_derives::NodeWithMetadata)]
162pub struct FlexGrowStyleValue;
163
164#[syntax(" <integer [1,∞]> ")]
174#[derive(
175 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
176)]
177#[declaration_metadata(
178 initial = "1",
179 applies_to = Unknown,
180 animation_type = Unknown,
181 property_group = Flexbox,
182 computed_value_type = Unknown,
183 canonical_order = "per grammar",
184)]
185#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
186#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.flex-line-count"))]
187#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
188#[derive(csskit_derives::NodeWithMetadata)]
189pub struct FlexLineCountStyleValue;
190
191#[syntax(" <number [0,∞]> ")]
203#[derive(
204 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
205)]
206#[declaration_metadata(
207 initial = "1",
208 applies_to = Unknown,
209 animation_type = Number,
210 shorthand_group = Flex,
211 property_group = Flexbox,
212 computed_value_type = AsSpecified,
213 canonical_order = "per grammar",
214)]
215#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
216#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.flex-shrink"))]
217#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
218#[derive(csskit_derives::NodeWithMetadata)]
219pub struct FlexShrinkStyleValue;
220
221#[syntax(" nowrap | [ wrap | wrap-reverse ] || balance ")]
233#[derive(
234 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
235)]
236#[declaration_metadata(
237 initial = "nowrap",
238 applies_to = Flex,
239 animation_type = Discrete,
240 shorthand_group = FlexFlow,
241 property_group = Flexbox,
242 computed_value_type = Unknown,
243 canonical_order = "per grammar",
244)]
245#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
246#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.flex-wrap"))]
247#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
248#[derive(csskit_derives::NodeWithMetadata)]
249pub enum FlexWrapStyleValue {}