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