1#![allow(warnings)]
2mod impls;
6use impls::*;
7
8#[syntax(" <length-percentage> | auto ")]
20#[derive(Parse, Peek, ToSpan, ToCursors, StyleValue, Visitable, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
21#[style_value(
22 initial = "0",
23 applies_to = "all elements except internal table elements, ruby base containers, and ruby annotation containers",
24 inherited = "no",
25 percentages = "refer to logical width of containing block",
26 canonical_order = "per grammar",
27 animation_type = "by computed value type"
28)]
29#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
30#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.margin-top"))]
31#[visit]
32pub struct MarginTopStyleValue;
33
34#[syntax(" <length-percentage> | auto ")]
46#[derive(Parse, Peek, ToSpan, ToCursors, StyleValue, Visitable, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
47#[style_value(
48 initial = "0",
49 applies_to = "all elements except internal table elements, ruby base containers, and ruby annotation containers",
50 inherited = "no",
51 percentages = "refer to logical width of containing block",
52 canonical_order = "per grammar",
53 animation_type = "by computed value type"
54)]
55#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
56#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.margin-right"))]
57#[visit]
58pub struct MarginRightStyleValue;
59
60#[syntax(" <length-percentage> | auto ")]
72#[derive(Parse, Peek, ToSpan, ToCursors, StyleValue, Visitable, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
73#[style_value(
74 initial = "0",
75 applies_to = "all elements except internal table elements, ruby base containers, and ruby annotation containers",
76 inherited = "no",
77 percentages = "refer to logical width of containing block",
78 canonical_order = "per grammar",
79 animation_type = "by computed value type"
80)]
81#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
82#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.margin-bottom"))]
83#[visit]
84pub struct MarginBottomStyleValue;
85
86#[syntax(" <length-percentage> | auto ")]
98#[derive(Parse, Peek, ToSpan, ToCursors, StyleValue, Visitable, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
99#[style_value(
100 initial = "0",
101 applies_to = "all elements except internal table elements, ruby base containers, and ruby annotation containers",
102 inherited = "no",
103 percentages = "refer to logical width of containing block",
104 canonical_order = "per grammar",
105 animation_type = "by computed value type"
106)]
107#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
108#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.margin-left"))]
109#[visit]
110pub struct MarginLeftStyleValue;
111
112#[syntax(" <'margin-top'>{1,4} ")]
124#[derive(Parse, Peek, ToSpan, ToCursors, StyleValue, Visitable, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
125#[style_value(
126 initial = "0",
127 applies_to = "all elements except internal table elements, ruby base containers, and ruby annotation containers",
128 inherited = "no",
129 percentages = "refer to logical width of containing block",
130 canonical_order = "per grammar",
131 animation_type = "by computed value type"
132)]
133#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
134#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.margin"))]
135#[visit]
136pub struct MarginStyleValue;
137
138#[syntax(" <length-percentage [0,∞]> ")]
150#[derive(Parse, Peek, ToSpan, ToCursors, StyleValue, Visitable, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
151#[style_value(
152 initial = "0",
153 applies_to = "all elements except: internal table elements other than table cells, ruby base containers, and ruby annotation containers",
154 inherited = "no",
155 percentages = "refer to logical width of containing block",
156 canonical_order = "per grammar",
157 animation_type = "by computed value type"
158)]
159#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
160#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.padding-top"))]
161#[visit]
162pub struct PaddingTopStyleValue;
163
164#[syntax(" <length-percentage [0,∞]> ")]
176#[derive(Parse, Peek, ToSpan, ToCursors, StyleValue, Visitable, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
177#[style_value(
178 initial = "0",
179 applies_to = "all elements except: internal table elements other than table cells, ruby base containers, and ruby annotation containers",
180 inherited = "no",
181 percentages = "refer to logical width of containing block",
182 canonical_order = "per grammar",
183 animation_type = "by computed value type"
184)]
185#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
186#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.padding-right"))]
187#[visit]
188pub struct PaddingRightStyleValue;
189
190#[syntax(" <length-percentage [0,∞]> ")]
202#[derive(Parse, Peek, ToSpan, ToCursors, StyleValue, Visitable, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
203#[style_value(
204 initial = "0",
205 applies_to = "all elements except: internal table elements other than table cells, ruby base containers, and ruby annotation containers",
206 inherited = "no",
207 percentages = "refer to logical width of containing block",
208 canonical_order = "per grammar",
209 animation_type = "by computed value type"
210)]
211#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
212#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.padding-bottom"))]
213#[visit]
214pub struct PaddingBottomStyleValue;
215
216#[syntax(" <length-percentage [0,∞]> ")]
228#[derive(Parse, Peek, ToSpan, ToCursors, StyleValue, Visitable, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
229#[style_value(
230 initial = "0",
231 applies_to = "all elements except: internal table elements other than table cells, ruby base containers, and ruby annotation containers",
232 inherited = "no",
233 percentages = "refer to logical width of containing block",
234 canonical_order = "per grammar",
235 animation_type = "by computed value type"
236)]
237#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
238#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.padding-left"))]
239#[visit]
240pub struct PaddingLeftStyleValue;
241
242#[syntax(" <'padding-top'>{1,4} ")]
254#[derive(Parse, Peek, ToSpan, ToCursors, StyleValue, Visitable, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
255#[style_value(
256 initial = "0",
257 applies_to = "all elements except: internal table elements other than table cells, ruby base containers, and ruby annotation containers",
258 inherited = "no",
259 percentages = "refer to logical width of containing block",
260 canonical_order = "per grammar",
261 animation_type = "by computed value type"
262)]
263#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
264#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.padding"))]
265#[visit]
266pub struct PaddingStyleValue;
267
268