css_ast/values/lists/
mod.rs

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