css_ast/values/gaps/
mod.rs

1#![allow(warnings)]
2//! https://drafts.csswg.org/css-gaps-1/
3
4mod impls;
5use super::prelude::*;
6use impls::*;
7/// Represents the style value for `column-rule` as defined in [css-gaps-1](https://drafts.csswg.org/css-gaps-1/#column-rule).
8///
9/// Multi-column layout flows an element's content across one or more columns in a single row, without affecting the display property of its children.
10///
11/// The grammar is defined as:
12///
13/// ```text,ignore
14/// <gap-rule-list> | <gap-auto-rule-list>
15/// ```
16///
17/// https://drafts.csswg.org/css-gaps-1/#column-rule
18#[syntax(" <gap-rule-list> | <gap-auto-rule-list> ")]
19#[derive(
20	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
21)]
22#[declaration_metadata(
23    initial = "see individual properties",
24    inherits = Unknown,
25    applies_to = Unknown,
26    percentages = Unknown,
27    animation_type = Unknown,
28    property_group = Gaps,
29    computed_value_type = Unknown,
30    canonical_order = "per grammar",
31)]
32#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
33#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.column-rule"))]
34#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
35pub enum ColumnRuleStyleValue {}
36
37/// Represents the style value for `column-rule-break` as defined in [css-gaps-1](https://drafts.csswg.org/css-gaps-1/#column-rule-break).
38///
39/// The grammar is defined as:
40///
41/// ```text,ignore
42/// none | spanning-item | intersection
43/// ```
44///
45/// https://drafts.csswg.org/css-gaps-1/#column-rule-break
46#[syntax(" none | spanning-item | intersection ")]
47#[derive(
48	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
49)]
50#[declaration_metadata(
51    initial = "spanning-item",
52    applies_to = Unknown,
53    animation_type = Discrete,
54    property_group = Gaps,
55    computed_value_type = AsSpecified,
56    canonical_order = "per grammar",
57)]
58#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
59#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.column-rule-break"))]
60#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
61pub enum ColumnRuleBreakStyleValue {}
62
63/// Represents the style value for `column-rule-color` as defined in [css-gaps-1](https://drafts.csswg.org/css-gaps-1/#column-rule-color).
64///
65/// Multi-column layout flows an element's content across one or more columns in a single row, without affecting the display property of its children.
66///
67/// The grammar is defined as:
68///
69/// ```text,ignore
70/// <line-color-list> | <auto-line-color-list>
71/// ```
72///
73/// https://drafts.csswg.org/css-gaps-1/#column-rule-color
74#[syntax(" <line-color-list> | <auto-line-color-list> ")]
75#[derive(
76	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
77)]
78#[declaration_metadata(
79    initial = "currentcolor",
80    applies_to = Unknown,
81    animation_type = RepeatableList,
82    property_group = Gaps,
83    computed_value_type = AsSpecified,
84    canonical_order = "per grammar",
85)]
86#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
87#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.column-rule-color"))]
88#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
89pub enum ColumnRuleColorStyleValue {}
90
91/// Represents the style value for `column-rule-outset` as defined in [css-gaps-1](https://drafts.csswg.org/css-gaps-1/#column-rule-outset).
92///
93/// The grammar is defined as:
94///
95/// ```text,ignore
96/// <length-percentage>
97/// ```
98///
99/// https://drafts.csswg.org/css-gaps-1/#column-rule-outset
100#[syntax(" <length-percentage> ")]
101#[derive(
102	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
103)]
104#[declaration_metadata(
105    initial = "50%",
106    applies_to = Unknown,
107    percentages = Unknown,
108    animation_type = ByComputedValue,
109    property_group = Gaps,
110    computed_value_type = AsSpecified,
111    canonical_order = "per grammar",
112)]
113#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
114#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.column-rule-outset"))]
115#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
116pub struct ColumnRuleOutsetStyleValue;
117
118/// Represents the style value for `column-rule-style` as defined in [css-gaps-1](https://drafts.csswg.org/css-gaps-1/#column-rule-style).
119///
120/// Multi-column layout flows an element's content across one or more columns in a single row, without affecting the display property of its children.
121///
122/// The grammar is defined as:
123///
124/// ```text,ignore
125/// <line-style-list> | <auto-line-style-list>
126/// ```
127///
128/// https://drafts.csswg.org/css-gaps-1/#column-rule-style
129#[syntax(" <line-style-list> | <auto-line-style-list> ")]
130#[derive(
131	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
132)]
133#[declaration_metadata(
134    initial = "none",
135    applies_to = Unknown,
136    animation_type = Discrete,
137    property_group = Gaps,
138    computed_value_type = AsSpecified,
139    canonical_order = "per grammar",
140)]
141#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
142#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.column-rule-style"))]
143#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
144pub enum ColumnRuleStyleStyleValue {}
145
146/// Represents the style value for `column-rule-width` as defined in [css-gaps-1](https://drafts.csswg.org/css-gaps-1/#column-rule-width).
147///
148/// Multi-column layout flows an element's content across one or more columns in a single row, without affecting the display property of its children.
149///
150/// The grammar is defined as:
151///
152/// ```text,ignore
153/// <line-width-list> | <auto-line-width-list>
154/// ```
155///
156/// https://drafts.csswg.org/css-gaps-1/#column-rule-width
157#[syntax(" <line-width-list> | <auto-line-width-list> ")]
158#[derive(
159	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
160)]
161#[declaration_metadata(
162    initial = "medium",
163    applies_to = Unknown,
164    animation_type = RepeatableList,
165    property_group = Gaps,
166    computed_value_type = ListOfAbsoluteLengths,
167    canonical_order = "per grammar",
168)]
169#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
170#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.column-rule-width"))]
171#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
172pub enum ColumnRuleWidthStyleValue<'a> {}
173
174/// Represents the style value for `row-rule` as defined in [css-gaps-1](https://drafts.csswg.org/css-gaps-1/#row-rule).
175///
176/// The grammar is defined as:
177///
178/// ```text,ignore
179/// <gap-rule-list> | <gap-auto-rule-list>
180/// ```
181///
182/// https://drafts.csswg.org/css-gaps-1/#row-rule
183#[syntax(" <gap-rule-list> | <gap-auto-rule-list> ")]
184#[derive(
185	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
186)]
187#[declaration_metadata(
188    initial = "see individual properties",
189    inherits = Unknown,
190    applies_to = Unknown,
191    percentages = Unknown,
192    animation_type = Unknown,
193    property_group = Gaps,
194    computed_value_type = Unknown,
195    canonical_order = "per grammar",
196)]
197#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
198#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.row-rule"))]
199#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
200pub enum RowRuleStyleValue {}
201
202/// Represents the style value for `row-rule-break` as defined in [css-gaps-1](https://drafts.csswg.org/css-gaps-1/#row-rule-break).
203///
204/// The grammar is defined as:
205///
206/// ```text,ignore
207/// none | spanning-item | intersection
208/// ```
209///
210/// https://drafts.csswg.org/css-gaps-1/#row-rule-break
211#[syntax(" none | spanning-item | intersection ")]
212#[derive(
213	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
214)]
215#[declaration_metadata(
216    initial = "spanning-item",
217    applies_to = Unknown,
218    animation_type = Discrete,
219    property_group = Gaps,
220    computed_value_type = AsSpecified,
221    canonical_order = "per grammar",
222)]
223#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
224#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.row-rule-break"))]
225#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
226pub enum RowRuleBreakStyleValue {}
227
228/// Represents the style value for `row-rule-color` as defined in [css-gaps-1](https://drafts.csswg.org/css-gaps-1/#row-rule-color).
229///
230/// The grammar is defined as:
231///
232/// ```text,ignore
233/// <line-color-list> | <auto-line-color-list>
234/// ```
235///
236/// https://drafts.csswg.org/css-gaps-1/#row-rule-color
237#[syntax(" <line-color-list> | <auto-line-color-list> ")]
238#[derive(
239	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
240)]
241#[declaration_metadata(
242    initial = "currentcolor",
243    applies_to = Unknown,
244    animation_type = RepeatableList,
245    property_group = Gaps,
246    computed_value_type = AsSpecified,
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.row-rule-color"))]
251#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
252pub enum RowRuleColorStyleValue {}
253
254/// Represents the style value for `row-rule-outset` as defined in [css-gaps-1](https://drafts.csswg.org/css-gaps-1/#row-rule-outset).
255///
256/// The grammar is defined as:
257///
258/// ```text,ignore
259/// <length-percentage>
260/// ```
261///
262/// https://drafts.csswg.org/css-gaps-1/#row-rule-outset
263#[syntax(" <length-percentage> ")]
264#[derive(
265	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
266)]
267#[declaration_metadata(
268    initial = "50%",
269    applies_to = Unknown,
270    percentages = Unknown,
271    animation_type = ByComputedValue,
272    property_group = Gaps,
273    computed_value_type = AsSpecified,
274    canonical_order = "per grammar",
275)]
276#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
277#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.row-rule-outset"))]
278#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
279pub struct RowRuleOutsetStyleValue;
280
281/// Represents the style value for `row-rule-style` as defined in [css-gaps-1](https://drafts.csswg.org/css-gaps-1/#row-rule-style).
282///
283/// The grammar is defined as:
284///
285/// ```text,ignore
286/// <line-style-list> | <auto-line-style-list>
287/// ```
288///
289/// https://drafts.csswg.org/css-gaps-1/#row-rule-style
290#[syntax(" <line-style-list> | <auto-line-style-list> ")]
291#[derive(
292	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
293)]
294#[declaration_metadata(
295    initial = "none",
296    applies_to = Unknown,
297    animation_type = Discrete,
298    property_group = Gaps,
299    computed_value_type = AsSpecified,
300    canonical_order = "per grammar",
301)]
302#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
303#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.row-rule-style"))]
304#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
305pub enum RowRuleStyleStyleValue {}
306
307/// Represents the style value for `row-rule-width` as defined in [css-gaps-1](https://drafts.csswg.org/css-gaps-1/#row-rule-width).
308///
309/// The grammar is defined as:
310///
311/// ```text,ignore
312/// <line-width-list> | <auto-line-width-list>
313/// ```
314///
315/// https://drafts.csswg.org/css-gaps-1/#row-rule-width
316#[syntax(" <line-width-list> | <auto-line-width-list> ")]
317#[derive(
318	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
319)]
320#[declaration_metadata(
321    initial = "medium",
322    applies_to = Unknown,
323    animation_type = RepeatableList,
324    property_group = Gaps,
325    computed_value_type = ListOfAbsoluteLengths,
326    canonical_order = "per grammar",
327)]
328#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
329#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.row-rule-width"))]
330#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
331pub enum RowRuleWidthStyleValue<'a> {}
332
333/// Represents the style value for `rule` as defined in [css-gaps-1](https://drafts.csswg.org/css-gaps-1/#rule).
334///
335/// The grammar is defined as:
336///
337/// ```text,ignore
338/// <'column-rule'>
339/// ```
340///
341/// https://drafts.csswg.org/css-gaps-1/#rule
342#[syntax(" <'column-rule'> ")]
343#[derive(
344	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
345)]
346#[declaration_metadata(
347    initial = "see individual properties",
348    applies_to = Unknown,
349    percentages = Unknown,
350    animation_type = Unknown,
351    property_group = Gaps,
352    computed_value_type = Unknown,
353    canonical_order = "per grammar",
354)]
355#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
356#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.rule"))]
357#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
358pub struct RuleStyleValue;
359
360/// Represents the style value for `rule-break` as defined in [css-gaps-1](https://drafts.csswg.org/css-gaps-1/#rule-break).
361///
362/// The grammar is defined as:
363///
364/// ```text,ignore
365/// <'column-rule-break'>
366/// ```
367///
368/// https://drafts.csswg.org/css-gaps-1/#rule-break
369#[syntax(" <'column-rule-break'> ")]
370#[derive(
371	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
372)]
373#[declaration_metadata(
374    initial = "see individual properties",
375    inherits = Unknown,
376    applies_to = Unknown,
377    percentages = Unknown,
378    animation_type = Unknown,
379    property_group = Gaps,
380    computed_value_type = Unknown,
381    canonical_order = "per grammar",
382)]
383#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
384#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.rule-break"))]
385#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
386pub struct RuleBreakStyleValue;
387
388/// Represents the style value for `rule-color` as defined in [css-gaps-1](https://drafts.csswg.org/css-gaps-1/#rule-color).
389///
390/// The grammar is defined as:
391///
392/// ```text,ignore
393/// <'column-rule-color'>
394/// ```
395///
396/// https://drafts.csswg.org/css-gaps-1/#rule-color
397#[syntax(" <'column-rule-color'> ")]
398#[derive(
399	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
400)]
401#[declaration_metadata(
402    initial = "see individual properties",
403    applies_to = Unknown,
404    percentages = Unknown,
405    animation_type = Unknown,
406    property_group = Gaps,
407    computed_value_type = Unknown,
408    canonical_order = "per grammar",
409)]
410#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
411#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.rule-color"))]
412#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
413pub struct RuleColorStyleValue;
414
415/// Represents the style value for `rule-outset` as defined in [css-gaps-1](https://drafts.csswg.org/css-gaps-1/#rule-outset).
416///
417/// The grammar is defined as:
418///
419/// ```text,ignore
420/// <'column-rule-outset'>
421/// ```
422///
423/// https://drafts.csswg.org/css-gaps-1/#rule-outset
424#[syntax(" <'column-rule-outset'> ")]
425#[derive(
426	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
427)]
428#[declaration_metadata(
429    initial = "see individual properties",
430    inherits = Unknown,
431    applies_to = Unknown,
432    percentages = Unknown,
433    animation_type = Unknown,
434    property_group = Gaps,
435    computed_value_type = Unknown,
436    canonical_order = "per grammar",
437)]
438#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
439#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.rule-outset"))]
440#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
441pub struct RuleOutsetStyleValue;
442
443/// Represents the style value for `rule-overlap` as defined in [css-gaps-1](https://drafts.csswg.org/css-gaps-1/#rule-overlap).
444///
445/// The grammar is defined as:
446///
447/// ```text,ignore
448/// row-over-column | column-over-row
449/// ```
450///
451/// https://drafts.csswg.org/css-gaps-1/#rule-overlap
452#[syntax(" row-over-column | column-over-row ")]
453#[derive(
454	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
455)]
456#[declaration_metadata(
457    initial = "row-over-column",
458    applies_to = Unknown,
459    animation_type = Discrete,
460    property_group = Gaps,
461    computed_value_type = AsSpecified,
462    canonical_order = "per grammar",
463)]
464#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
465#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.rule-overlap"))]
466#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
467pub enum RuleOverlapStyleValue {}
468
469/// Represents the style value for `rule-style` as defined in [css-gaps-1](https://drafts.csswg.org/css-gaps-1/#rule-style).
470///
471/// The grammar is defined as:
472///
473/// ```text,ignore
474/// <'column-rule-style'>
475/// ```
476///
477/// https://drafts.csswg.org/css-gaps-1/#rule-style
478#[syntax(" <'column-rule-style'> ")]
479#[derive(
480	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
481)]
482#[declaration_metadata(
483    initial = "see individual properties",
484    applies_to = Unknown,
485    percentages = Unknown,
486    animation_type = Unknown,
487    property_group = Gaps,
488    computed_value_type = Unknown,
489    canonical_order = "per grammar",
490)]
491#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
492#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.rule-style"))]
493#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
494pub struct RuleStyleStyleValue;
495
496/// Represents the style value for `rule-width` as defined in [css-gaps-1](https://drafts.csswg.org/css-gaps-1/#rule-width).
497///
498/// The grammar is defined as:
499///
500/// ```text,ignore
501/// <'column-rule-width'>
502/// ```
503///
504/// https://drafts.csswg.org/css-gaps-1/#rule-width
505#[syntax(" <'column-rule-width'> ")]
506#[derive(
507	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
508)]
509#[declaration_metadata(
510    initial = "see individual properties",
511    applies_to = Unknown,
512    percentages = Unknown,
513    animation_type = Unknown,
514    property_group = Gaps,
515    computed_value_type = Unknown,
516    canonical_order = "per grammar",
517)]
518#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
519#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.rule-width"))]
520#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
521pub struct RuleWidthStyleValue<'a>;