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(" <'padding-top'>{1,4} ")]
239#[derive(
240 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
241)]
242#[declaration_metadata(
243 initial = "0",
244 applies_to = Unknown,
245 animation_type = ByComputedValue,
246 percentages = ContainingBlock,
247 longhands = PaddingBottom|PaddingLeft|PaddingRight|PaddingTop,
248 property_group = Box,
249 computed_value_type = Unknown,
250 canonical_order = "per grammar",
251 box_side = Top|Bottom|Left|Right,
252 box_portion = Padding,
253)]
254#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
255#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.padding"))]
256#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
257#[derive(csskit_derives::NodeWithMetadata)]
258pub struct PaddingStyleValue;
259
260#[syntax(" <length-percentage [0,∞]> ")]
272#[derive(
273 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
274)]
275#[declaration_metadata(
276 initial = "0",
277 applies_to = Unknown,
278 animation_type = ByComputedValue,
279 percentages = ContainingBlock,
280 shorthand_group = Padding,
281 property_group = Box,
282 computed_value_type = Unknown,
283 canonical_order = "per grammar",
284 logical_property_group = Padding,
285 box_side = Bottom,
286 box_portion = Padding,
287)]
288#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
289#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.padding-bottom"))]
290#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
291#[derive(csskit_derives::NodeWithMetadata)]
292pub struct PaddingBottomStyleValue;
293
294#[syntax(" <length-percentage [0,∞]> ")]
306#[derive(
307 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
308)]
309#[declaration_metadata(
310 initial = "0",
311 applies_to = Unknown,
312 animation_type = ByComputedValue,
313 percentages = ContainingBlock,
314 shorthand_group = Padding,
315 property_group = Box,
316 computed_value_type = Unknown,
317 canonical_order = "per grammar",
318 logical_property_group = Padding,
319 box_side = Left,
320 box_portion = Padding,
321)]
322#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
323#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.padding-left"))]
324#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
325#[derive(csskit_derives::NodeWithMetadata)]
326pub struct PaddingLeftStyleValue;
327
328#[syntax(" <length-percentage [0,∞]> ")]
340#[derive(
341 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
342)]
343#[declaration_metadata(
344 initial = "0",
345 applies_to = Unknown,
346 animation_type = ByComputedValue,
347 percentages = ContainingBlock,
348 shorthand_group = Padding,
349 property_group = Box,
350 computed_value_type = Unknown,
351 canonical_order = "per grammar",
352 logical_property_group = Padding,
353 box_side = Right,
354 box_portion = Padding,
355)]
356#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
357#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.padding-right"))]
358#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
359#[derive(csskit_derives::NodeWithMetadata)]
360pub struct PaddingRightStyleValue;
361
362#[syntax(" <length-percentage [0,∞]> ")]
374#[derive(
375 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
376)]
377#[declaration_metadata(
378 initial = "0",
379 applies_to = Unknown,
380 animation_type = ByComputedValue,
381 percentages = ContainingBlock,
382 shorthand_group = Padding,
383 property_group = Box,
384 computed_value_type = Unknown,
385 canonical_order = "per grammar",
386 logical_property_group = Padding,
387 box_side = Top,
388 box_portion = Padding,
389)]
390#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
391#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.padding-top"))]
392#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
393#[derive(csskit_derives::NodeWithMetadata)]
394pub struct PaddingTopStyleValue;