1#![allow(warnings)]
2mod impls;
5use super::prelude::*;
6use impls::*;
7#[syntax(" <'margin-top'>{1,4} ")]
19#[derive(
20 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
21)]
22#[declaration_metadata(
23 initial = "0",
24 applies_to = Unknown,
25 percentages = ContainingBlock,
26 animation_type = ByComputedValue,
27 property_group = Box,
28 computed_value_type = Unknown,
29 canonical_order = "per grammar",
30 box_side = Top|Bottom|Left|Right,
31 box_portion = Margin,
32)]
33#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
34#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.margin"))]
35#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
36pub struct MarginStyleValue;
37
38#[syntax(" <length-percentage> | auto ")]
50#[derive(
51 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
52)]
53#[declaration_metadata(
54 initial = "0",
55 applies_to = Unknown,
56 percentages = ContainingBlock,
57 animation_type = ByComputedValue,
58 property_group = Box,
59 computed_value_type = Unknown,
60 canonical_order = "per grammar",
61 logical_property_group = Margin,
62 box_side = Bottom,
63 box_portion = Margin,
64)]
65#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
66#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.margin-bottom"))]
67#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
68pub struct MarginBottomStyleValue;
69
70#[syntax(" <length-percentage> | auto ")]
82#[derive(
83 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
84)]
85#[declaration_metadata(
86 initial = "0",
87 applies_to = Unknown,
88 percentages = ContainingBlock,
89 animation_type = ByComputedValue,
90 property_group = Box,
91 computed_value_type = Unknown,
92 canonical_order = "per grammar",
93 logical_property_group = Margin,
94 box_side = Left,
95 box_portion = Margin,
96)]
97#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
98#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.margin-left"))]
99#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
100pub struct MarginLeftStyleValue;
101
102#[syntax(" <length-percentage> | auto ")]
114#[derive(
115 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
116)]
117#[declaration_metadata(
118 initial = "0",
119 applies_to = Unknown,
120 percentages = ContainingBlock,
121 animation_type = ByComputedValue,
122 property_group = Box,
123 computed_value_type = Unknown,
124 canonical_order = "per grammar",
125 logical_property_group = Margin,
126 box_side = Right,
127 box_portion = Margin,
128)]
129#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
130#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.margin-right"))]
131#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
132pub struct MarginRightStyleValue;
133
134#[syntax(" <length-percentage> | auto ")]
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 percentages = ContainingBlock,
153 animation_type = ByComputedValue,
154 property_group = Box,
155 computed_value_type = Unknown,
156 canonical_order = "per grammar",
157 logical_property_group = Margin,
158 box_side = Top,
159 box_portion = Margin,
160)]
161#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
162#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.margin-top"))]
163#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
164pub struct MarginTopStyleValue;
165
166#[syntax(" <'padding-top'>{1,4} ")]
225#[derive(
226 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
227)]
228#[declaration_metadata(
229 initial = "0",
230 applies_to = Unknown,
231 percentages = ContainingBlock,
232 animation_type = ByComputedValue,
233 property_group = Box,
234 computed_value_type = Unknown,
235 canonical_order = "per grammar",
236 box_side = Top|Bottom|Left|Right,
237 box_portion = Padding,
238)]
239#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
240#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.padding"))]
241#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
242pub struct PaddingStyleValue;
243
244#[syntax(" <length-percentage [0,∞]> ")]
256#[derive(
257 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
258)]
259#[declaration_metadata(
260 initial = "0",
261 applies_to = Unknown,
262 percentages = ContainingBlock,
263 animation_type = ByComputedValue,
264 property_group = Box,
265 computed_value_type = Unknown,
266 canonical_order = "per grammar",
267 logical_property_group = Padding,
268 box_side = Bottom,
269 box_portion = Padding,
270)]
271#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
272#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.padding-bottom"))]
273#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
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 percentages = ContainingBlock,
295 animation_type = ByComputedValue,
296 property_group = Box,
297 computed_value_type = Unknown,
298 canonical_order = "per grammar",
299 logical_property_group = Padding,
300 box_side = Left,
301 box_portion = Padding,
302)]
303#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
304#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.padding-left"))]
305#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
306pub struct PaddingLeftStyleValue;
307
308#[syntax(" <length-percentage [0,∞]> ")]
320#[derive(
321 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
322)]
323#[declaration_metadata(
324 initial = "0",
325 applies_to = Unknown,
326 percentages = ContainingBlock,
327 animation_type = ByComputedValue,
328 property_group = Box,
329 computed_value_type = Unknown,
330 canonical_order = "per grammar",
331 logical_property_group = Padding,
332 box_side = Right,
333 box_portion = Padding,
334)]
335#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
336#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.padding-right"))]
337#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
338pub struct PaddingRightStyleValue;
339
340#[syntax(" <length-percentage [0,∞]> ")]
352#[derive(
353 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
354)]
355#[declaration_metadata(
356 initial = "0",
357 applies_to = Unknown,
358 percentages = ContainingBlock,
359 animation_type = ByComputedValue,
360 property_group = Box,
361 computed_value_type = Unknown,
362 canonical_order = "per grammar",
363 logical_property_group = Padding,
364 box_side = Top,
365 box_portion = Padding,
366)]
367#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
368#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.padding-top"))]
369#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
370pub struct PaddingTopStyleValue;