1#![allow(warnings)]
5mod impls;
8use super::prelude::*;
9use impls::*;
10#[syntax(" <'margin-top'>{1,4} ")]
22#[derive(
23 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
24)]
25#[declaration_metadata(
26 initial = "0",
27 applies_to = Unknown,
28 animation_type = ByComputedValue,
29 percentages = ContainingBlock,
30 longhands = MarginBottom|MarginLeft|MarginRight|MarginTop,
31 property_group = Box,
32 computed_value_type = Unknown,
33 canonical_order = "per grammar",
34 box_side = Top|Bottom|Left|Right,
35 box_portion = Margin,
36)]
37#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
38#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.margin"))]
39#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
40#[derive(csskit_derives::NodeWithMetadata)]
41pub struct MarginStyleValue;
42
43#[syntax(" <length-percentage> | auto ")]
55#[derive(
56 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
57)]
58#[declaration_metadata(
59 initial = "0",
60 applies_to = Unknown,
61 animation_type = ByComputedValue,
62 percentages = ContainingBlock,
63 shorthand_group = Margin,
64 property_group = Box,
65 computed_value_type = Unknown,
66 canonical_order = "per grammar",
67 logical_property_group = Margin,
68 box_side = Bottom,
69 box_portion = Margin,
70)]
71#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
72#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.margin-bottom"))]
73#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
74#[derive(csskit_derives::NodeWithMetadata)]
75pub struct MarginBottomStyleValue;
76
77#[syntax(" <length-percentage> | auto ")]
89#[derive(
90 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
91)]
92#[declaration_metadata(
93 initial = "0",
94 applies_to = Unknown,
95 animation_type = ByComputedValue,
96 percentages = ContainingBlock,
97 shorthand_group = Margin,
98 property_group = Box,
99 computed_value_type = Unknown,
100 canonical_order = "per grammar",
101 logical_property_group = Margin,
102 box_side = Left,
103 box_portion = Margin,
104)]
105#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
106#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.margin-left"))]
107#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
108#[derive(csskit_derives::NodeWithMetadata)]
109pub struct MarginLeftStyleValue;
110
111#[syntax(" <length-percentage> | auto ")]
123#[derive(
124 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
125)]
126#[declaration_metadata(
127 initial = "0",
128 applies_to = Unknown,
129 animation_type = ByComputedValue,
130 percentages = ContainingBlock,
131 shorthand_group = Margin,
132 property_group = Box,
133 computed_value_type = Unknown,
134 canonical_order = "per grammar",
135 logical_property_group = Margin,
136 box_side = Right,
137 box_portion = Margin,
138)]
139#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
140#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.margin-right"))]
141#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
142#[derive(csskit_derives::NodeWithMetadata)]
143pub struct MarginRightStyleValue;
144
145#[syntax(" <length-percentage> | auto ")]
157#[derive(
158 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
159)]
160#[declaration_metadata(
161 initial = "0",
162 applies_to = Unknown,
163 animation_type = ByComputedValue,
164 percentages = ContainingBlock,
165 shorthand_group = Margin,
166 property_group = Box,
167 computed_value_type = Unknown,
168 canonical_order = "per grammar",
169 logical_property_group = Margin,
170 box_side = Top,
171 box_portion = Margin,
172)]
173#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
174#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.margin-top"))]
175#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
176#[derive(csskit_derives::NodeWithMetadata)]
177pub struct MarginTopStyleValue;
178
179#[syntax(" none | [ block || inline ] | [ block-start || inline-start || block-end || inline-end ] ")]
191#[derive(
192 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
193)]
194#[declaration_metadata(
195 initial = "none",
196 applies_to = Unknown,
197 animation_type = Discrete,
198 property_group = Box,
199 computed_value_type = Unknown,
200 canonical_order = "per grammar",
201 box_portion = Margin,
202)]
203#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
204#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.margin-trim"))]
205#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
206#[derive(csskit_derives::NodeWithMetadata)]
207pub enum MarginTrimStyleValue {}
208
209#[syntax(" <'padding-top'>{1,4} ")]
221#[derive(
222 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
223)]
224#[declaration_metadata(
225 initial = "0",
226 applies_to = Unknown,
227 animation_type = ByComputedValue,
228 percentages = ContainingBlock,
229 longhands = PaddingBottom|PaddingLeft|PaddingRight|PaddingTop,
230 property_group = Box,
231 computed_value_type = Unknown,
232 canonical_order = "per grammar",
233 box_side = Top|Bottom|Left|Right,
234 box_portion = Padding,
235)]
236#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
237#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.padding"))]
238#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
239#[derive(csskit_derives::NodeWithMetadata)]
240pub struct PaddingStyleValue;
241
242#[syntax(" <length-percentage [0,∞]> ")]
254#[derive(
255 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
256)]
257#[declaration_metadata(
258 initial = "0",
259 applies_to = Unknown,
260 animation_type = ByComputedValue,
261 percentages = ContainingBlock,
262 shorthand_group = Padding,
263 property_group = Box,
264 computed_value_type = Unknown,
265 canonical_order = "per grammar",
266 logical_property_group = Padding,
267 box_side = Bottom,
268 box_portion = Padding,
269)]
270#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
271#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.padding-bottom"))]
272#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
273#[derive(csskit_derives::NodeWithMetadata)]
274pub struct PaddingBottomStyleValue;
275
276#[syntax(" <length-percentage [0,∞]> ")]
288#[derive(
289 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
290)]
291#[declaration_metadata(
292 initial = "0",
293 applies_to = Unknown,
294 animation_type = ByComputedValue,
295 percentages = ContainingBlock,
296 shorthand_group = Padding,
297 property_group = Box,
298 computed_value_type = Unknown,
299 canonical_order = "per grammar",
300 logical_property_group = Padding,
301 box_side = Left,
302 box_portion = Padding,
303)]
304#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
305#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.padding-left"))]
306#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
307#[derive(csskit_derives::NodeWithMetadata)]
308pub struct PaddingLeftStyleValue;
309
310#[syntax(" <length-percentage [0,∞]> ")]
322#[derive(
323 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
324)]
325#[declaration_metadata(
326 initial = "0",
327 applies_to = Unknown,
328 animation_type = ByComputedValue,
329 percentages = ContainingBlock,
330 shorthand_group = Padding,
331 property_group = Box,
332 computed_value_type = Unknown,
333 canonical_order = "per grammar",
334 logical_property_group = Padding,
335 box_side = Right,
336 box_portion = Padding,
337)]
338#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
339#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.padding-right"))]
340#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
341#[derive(csskit_derives::NodeWithMetadata)]
342pub struct PaddingRightStyleValue;
343
344#[syntax(" <length-percentage [0,∞]> ")]
356#[derive(
357 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
358)]
359#[declaration_metadata(
360 initial = "0",
361 applies_to = Unknown,
362 animation_type = ByComputedValue,
363 percentages = ContainingBlock,
364 shorthand_group = Padding,
365 property_group = Box,
366 computed_value_type = Unknown,
367 canonical_order = "per grammar",
368 logical_property_group = Padding,
369 box_side = Top,
370 box_portion = Padding,
371)]
372#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
373#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.padding-top"))]
374#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
375#[derive(csskit_derives::NodeWithMetadata)]
376pub struct PaddingTopStyleValue;