1#![allow(warnings)]
2mod impls;
6use impls::*;
7
8#[syntax(" static | relative | absolute | sticky | fixed ")]
20#[derive(Parse, Peek, ToSpan, ToCursors, StyleValue, Visitable, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
21#[style_value(
22 initial = "static",
23 applies_to = "all elements except table-column-group and table-column",
24 inherited = "no",
25 percentages = "n/a",
26 canonical_order = "per grammar",
27 animation_type = "discrete"
28)]
29#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
30#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.position"))]
31#[visit]
32pub enum PositionStyleValue {}
33
34#[syntax(" auto | <length-percentage> ")]
46#[derive(Parse, Peek, ToSpan, ToCursors, StyleValue, Visitable, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
47#[style_value(
48 initial = "auto",
49 applies_to = "positioned elements",
50 inherited = "no",
51 percentages = "refer to size of containing block; see prose",
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.top"))]
57#[visit]
58pub struct TopStyleValue;
59
60#[syntax(" auto | <length-percentage> ")]
72#[derive(Parse, Peek, ToSpan, ToCursors, StyleValue, Visitable, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
73#[style_value(
74 initial = "auto",
75 applies_to = "positioned elements",
76 inherited = "no",
77 percentages = "refer to size of containing block; see prose",
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.right"))]
83#[visit]
84pub struct RightStyleValue;
85
86#[syntax(" auto | <length-percentage> ")]
98#[derive(Parse, Peek, ToSpan, ToCursors, StyleValue, Visitable, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
99#[style_value(
100 initial = "auto",
101 applies_to = "positioned elements",
102 inherited = "no",
103 percentages = "refer to size of containing block; see prose",
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.bottom"))]
109#[visit]
110pub struct BottomStyleValue;
111
112#[syntax(" auto | <length-percentage> ")]
124#[derive(Parse, Peek, ToSpan, ToCursors, StyleValue, Visitable, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
125#[style_value(
126 initial = "auto",
127 applies_to = "positioned elements",
128 inherited = "no",
129 percentages = "refer to size of containing block; see prose",
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.left"))]
135#[visit]
136pub struct LeftStyleValue;
137
138#[syntax(" auto | <length-percentage> ")]
150#[derive(Parse, Peek, ToSpan, ToCursors, StyleValue, Visitable, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
151#[style_value(
152 initial = "auto",
153 applies_to = "positioned elements",
154 inherited = "no",
155 percentages = "refer to size of containing block; see prose",
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.inset-block-start"))]
161#[visit]
162pub struct InsetBlockStartStyleValue;
163
164#[syntax(" auto | <length-percentage> ")]
176#[derive(Parse, Peek, ToSpan, ToCursors, StyleValue, Visitable, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
177#[style_value(
178 initial = "auto",
179 applies_to = "positioned elements",
180 inherited = "no",
181 percentages = "refer to size of containing block; see prose",
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.inset-inline-start"))]
187#[visit]
188pub struct InsetInlineStartStyleValue;
189
190#[syntax(" auto | <length-percentage> ")]
202#[derive(Parse, Peek, ToSpan, ToCursors, StyleValue, Visitable, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
203#[style_value(
204 initial = "auto",
205 applies_to = "positioned elements",
206 inherited = "no",
207 percentages = "refer to size of containing block; see prose",
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.inset-block-end"))]
213#[visit]
214pub struct InsetBlockEndStyleValue;
215
216#[syntax(" auto | <length-percentage> ")]
228#[derive(Parse, Peek, ToSpan, ToCursors, StyleValue, Visitable, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
229#[style_value(
230 initial = "auto",
231 applies_to = "positioned elements",
232 inherited = "no",
233 percentages = "refer to size of containing block; see prose",
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.inset-inline-end"))]
239#[visit]
240pub struct InsetInlineEndStyleValue;
241
242#[syntax(" <'top'>{1,2} ")]
254#[derive(Parse, Peek, ToSpan, ToCursors, StyleValue, Visitable, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
255#[style_value(
256 initial = "auto",
257 applies_to = "positioned elements",
258 inherited = "no",
259 percentages = "see individual properties",
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.inset-block"))]
265#[visit]
266pub struct InsetBlockStyleValue;
267
268#[syntax(" <'top'>{1,2} ")]
280#[derive(Parse, Peek, ToSpan, ToCursors, StyleValue, Visitable, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
281#[style_value(
282 initial = "auto",
283 applies_to = "positioned elements",
284 inherited = "no",
285 percentages = "see individual properties",
286 canonical_order = "per grammar",
287 animation_type = "by computed value type"
288)]
289#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
290#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.inset-inline"))]
291#[visit]
292pub struct InsetInlineStyleValue;
293
294#[syntax(" <'top'>{1,4} ")]
306#[derive(Parse, Peek, ToSpan, ToCursors, StyleValue, Visitable, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
307#[style_value(
308 initial = "auto",
309 applies_to = "positioned elements",
310 inherited = "no",
311 percentages = "see individual properties",
312 canonical_order = "per grammar",
313 animation_type = "by computed value type"
314)]
315#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
316#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.inset"))]
317#[visit]
318pub struct InsetStyleValue;
319
320#[syntax(" none | auto ")]
332#[derive(Parse, Peek, ToSpan, ToCursors, StyleValue, Visitable, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
333#[style_value(
334 initial = "none",
335 applies_to = "all elements",
336 inherited = "no",
337 percentages = "n/a",
338 canonical_order = "per grammar",
339 animation_type = "see prose"
340)]
341#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
342#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.overlay"))]
343#[visit]
344pub enum OverlayStyleValue {}