css_ast/values/lists/
mod.rs

1#![allow(warnings)]
2//! https://drafts.csswg.org/css-lists-3/
3
4mod impls;
5use super::prelude::*;
6use impls::*;
7// /// Represents the style value for `counter-increment` as defined in [css-lists-3](https://drafts.csswg.org/css-lists-3/#counter-increment).
8// ///
9// /// The counter-reset and counter-increment CSS properties and the counter() and counters() functions automatically number headings or ordered list items.
10// ///
11// /// The grammar is defined as:
12// ///
13// /// ```text,ignore
14// /// [ <counter-name> <integer>? ]+ | none
15// /// ```
16// ///
17// /// https://drafts.csswg.org/css-lists-3/#counter-increment
18// #[syntax(" [ <counter-name> <integer>? ]+ | none ")]
19// #[derive(
20//     Parse,
21//     Peek,
22//     ToSpan,
23//     ToCursors,
24//     DeclarationMetadata,
25//     SemanticEq,
26//     Debug,
27//     Clone,
28//     PartialEq,
29//     Eq,
30//     PartialOrd,
31//     Ord,
32//     Hash,
33// )]
34// #[declaration_metadata(
35//     initial = "none",
36//     applies_to = Elements,
37//     animation_type = ByComputedValue,
38//     property_group = Lists,
39//     computed_value_type = Unknown,
40//     canonical_order = "per grammar",
41// )]
42// #[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
43// #[cfg_attr(
44//     feature = "css_feature_data",
45//     derive(ToCSSFeature),
46//     css_feature("css.properties.counter-increment")
47// )]
48// #[cfg_attr(feature = "visitable", derive(Visitable), visit)]
49// pub struct CounterIncrementStyleValue<'a>;
50
51// /// Represents the style value for `counter-reset` as defined in [css-lists-3](https://drafts.csswg.org/css-lists-3/#counter-reset).
52// ///
53// /// The counter-reset and counter-increment CSS properties and the counter() and counters() functions automatically number headings or ordered list items.
54// ///
55// /// The grammar is defined as:
56// ///
57// /// ```text,ignore
58// /// [ <counter-name> <integer>? | <reversed-counter-name> <integer>? ]+ | none
59// /// ```
60// ///
61// /// https://drafts.csswg.org/css-lists-3/#counter-reset
62// #[syntax(" [ <counter-name> <integer>? | <reversed-counter-name> <integer>? ]+ | none ")]
63// #[derive(
64//     Parse,
65//     Peek,
66//     ToSpan,
67//     ToCursors,
68//     DeclarationMetadata,
69//     SemanticEq,
70//     Debug,
71//     Clone,
72//     PartialEq,
73//     Eq,
74//     PartialOrd,
75//     Ord,
76//     Hash,
77// )]
78// #[declaration_metadata(
79//     initial = "none",
80//     applies_to = Elements,
81//     animation_type = ByComputedValue,
82//     property_group = Lists,
83//     computed_value_type = Unknown,
84//     canonical_order = "per grammar",
85// )]
86// #[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
87// #[cfg_attr(
88//     feature = "css_feature_data",
89//     derive(ToCSSFeature),
90//     css_feature("css.properties.counter-reset")
91// )]
92// #[cfg_attr(feature = "visitable", derive(Visitable), visit)]
93// pub struct CounterResetStyleValue<'a>;
94
95// /// Represents the style value for `counter-set` as defined in [css-lists-3](https://drafts.csswg.org/css-lists-3/#counter-set).
96// ///
97// /// The counter-set CSS property creates (and optionally sets a value for) a counter, the numbers for a series of headings or ordered list items.
98// ///
99// /// The grammar is defined as:
100// ///
101// /// ```text,ignore
102// /// [ <counter-name> <integer>? ]+ | none
103// /// ```
104// ///
105// /// https://drafts.csswg.org/css-lists-3/#counter-set
106// #[syntax(" [ <counter-name> <integer>? ]+ | none ")]
107// #[derive(
108//     Parse,
109//     Peek,
110//     ToSpan,
111//     ToCursors,
112//     DeclarationMetadata,
113//     SemanticEq,
114//     Debug,
115//     Clone,
116//     PartialEq,
117//     Eq,
118//     PartialOrd,
119//     Ord,
120//     Hash,
121// )]
122// #[declaration_metadata(
123//     initial = "none",
124//     applies_to = Elements,
125//     animation_type = ByComputedValue,
126//     property_group = Lists,
127//     computed_value_type = Unknown,
128//     canonical_order = "per grammar",
129// )]
130// #[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
131// #[cfg_attr(
132//     feature = "css_feature_data",
133//     derive(ToCSSFeature),
134//     css_feature("css.properties.counter-set")
135// )]
136// #[cfg_attr(feature = "visitable", derive(Visitable), visit)]
137// pub struct CounterSetStyleValue<'a>;
138
139// /// Represents the style value for `list-style` as defined in [css-lists-3](https://drafts.csswg.org/css-lists-3/#list-style).
140// ///
141// /// The list-style shorthand CSS property and the list-style-image, list-style-position, and list-style-type longhand properties set the position and appearance of a list item's marker.
142// ///
143// /// The grammar is defined as:
144// ///
145// /// ```text,ignore
146// /// <'list-style-position'> || <'list-style-image'> || <'list-style-type'>
147// /// ```
148// ///
149// /// https://drafts.csswg.org/css-lists-3/#list-style
150// #[syntax(" <'list-style-position'> || <'list-style-image'> || <'list-style-type'> ")]
151// #[derive(
152//     Parse,
153//     Peek,
154//     ToSpan,
155//     ToCursors,
156//     DeclarationMetadata,
157//     SemanticEq,
158//     Debug,
159//     Clone,
160//     PartialEq,
161//     Eq,
162//     PartialOrd,
163//     Ord,
164//     Hash,
165// )]
166// #[declaration_metadata(
167//     initial = "see individual properties",
168//     inherits = Unknown,
169//     applies_to = Unknown,
170//     percentages = Unknown,
171//     animation_type = Unknown,
172//     property_group = Lists,
173//     computed_value_type = Unknown,
174//     canonical_order = "per grammar",
175// )]
176// #[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
177// #[cfg_attr(
178//     feature = "css_feature_data",
179//     derive(ToCSSFeature),
180//     css_feature("css.properties.list-style")
181// )]
182// #[cfg_attr(feature = "visitable", derive(Visitable), visit)]
183// pub struct ListStyleStyleValue;
184
185/// Represents the style value for `list-style-image` as defined in [css-lists-3](https://drafts.csswg.org/css-lists-3/#list-style-image).
186///
187/// The list-style shorthand CSS property and the list-style-image, list-style-position, and list-style-type longhand properties set the position and appearance of a list item's marker.
188///
189/// The grammar is defined as:
190///
191/// ```text,ignore
192/// <image> | none
193/// ```
194///
195/// https://drafts.csswg.org/css-lists-3/#list-style-image
196#[syntax(" <image> | none ")]
197#[derive(
198	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
199)]
200#[declaration_metadata(
201    initial = "none",
202    inherits,
203    applies_to = Unknown,
204    animation_type = Discrete,
205    property_group = Lists,
206    computed_value_type = Unknown,
207    canonical_order = "per grammar",
208)]
209#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
210#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.list-style-image"))]
211#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
212pub struct ListStyleImageStyleValue<'a>;
213
214/// Represents the style value for `list-style-position` as defined in [css-lists-3](https://drafts.csswg.org/css-lists-3/#list-style-position).
215///
216/// The list-style shorthand CSS property and the list-style-image, list-style-position, and list-style-type longhand properties set the position and appearance of a list item's marker.
217///
218/// The grammar is defined as:
219///
220/// ```text,ignore
221/// inside | outside
222/// ```
223///
224/// https://drafts.csswg.org/css-lists-3/#list-style-position
225#[syntax(" inside | outside ")]
226#[derive(
227	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
228)]
229#[declaration_metadata(
230    initial = "outside",
231    inherits,
232    applies_to = Unknown,
233    animation_type = Discrete,
234    property_group = Lists,
235    computed_value_type = Unknown,
236    canonical_order = "per grammar",
237)]
238#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
239#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.list-style-position"))]
240#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
241pub enum ListStylePositionStyleValue {}
242
243/// Represents the style value for `list-style-type` as defined in [css-lists-3](https://drafts.csswg.org/css-lists-3/#list-style-type).
244///
245/// The list-style shorthand CSS property and the list-style-image, list-style-position, and list-style-type longhand properties set the position and appearance of a list item's marker.
246///
247/// The grammar is defined as:
248///
249/// ```text,ignore
250/// <counter-style> | <string> | none
251/// ```
252///
253/// https://drafts.csswg.org/css-lists-3/#list-style-type
254#[syntax(" <counter-style> | <string> | none ")]
255#[derive(
256	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
257)]
258#[declaration_metadata(
259    initial = "disc",
260    inherits,
261    applies_to = Unknown,
262    animation_type = Discrete,
263    property_group = Lists,
264    computed_value_type = AsSpecified,
265    canonical_order = "per grammar",
266)]
267#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
268#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.list-style-type"))]
269#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
270pub enum ListStyleTypeStyleValue<'a> {}
271
272/// Represents the style value for `marker-side` as defined in [css-lists-3](https://drafts.csswg.org/css-lists-3/#marker-side).
273///
274/// The grammar is defined as:
275///
276/// ```text,ignore
277/// match-self | match-parent
278/// ```
279///
280/// https://drafts.csswg.org/css-lists-3/#marker-side
281#[syntax(" match-self | match-parent ")]
282#[derive(
283	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
284)]
285#[declaration_metadata(
286    initial = "match-self",
287    inherits,
288    applies_to = Unknown,
289    animation_type = Discrete,
290    property_group = Lists,
291    computed_value_type = Unknown,
292    canonical_order = "per grammar",
293)]
294#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
295#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.marker-side"))]
296#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
297pub enum MarkerSideStyleValue {}