Skip to main content

css_ast/values/text/
mod.rs

1// AUTO-GENERATED from w3c/csswg-drafts
2// Commit: https://github.com/w3c/csswg-drafts/commit/ddbceaa3cee88f134d557c3051c26fcb5554a535
3// Do not edit this file directly.
4#![allow(warnings)]
5//! https://drafts.csswg.org/css-text-5/
6
7mod impls;
8use super::prelude::*;
9use impls::*;
10/// Represents the style value for `hanging-punctuation` as defined in [css-text-5](https://drafts.csswg.org/css-text-5/#hanging-punctuation).
11///
12/// The hanging-punctuation CSS property puts punctuation characters outside of the box to align the text with the rest of the document.
13///
14/// The grammar is defined as:
15///
16/// ```text,ignore
17/// none | [ first || [ force-end | allow-end ] || last ]
18/// ```
19///
20/// https://drafts.csswg.org/css-text-5/#hanging-punctuation
21#[syntax(" none | [ first || [ force-end | allow-end ] || last ] ")]
22#[derive(
23	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
24)]
25#[declaration_metadata(
26    initial = "none",
27    inherits,
28    applies_to = Text,
29    animation_type = Discrete,
30    property_group = Text,
31    computed_value_type = Unknown,
32    canonical_order = "per grammar",
33)]
34#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
35#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.hanging-punctuation"))]
36#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
37#[derive(csskit_derives::NodeWithMetadata)]
38pub enum HangingPunctuationStyleValue {}
39
40/// Represents the style value for `hyphenate-character` as defined in [css-text-5](https://drafts.csswg.org/css-text-5/#hyphenate-character).
41///
42/// The hyphenate-character CSS property sets the character or string to use at the end of a line before a line break.
43///
44/// The grammar is defined as:
45///
46/// ```text,ignore
47/// auto | <string>
48/// ```
49///
50/// https://drafts.csswg.org/css-text-5/#hyphenate-character
51#[syntax(" auto | <string> ")]
52#[derive(
53	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
54)]
55#[declaration_metadata(
56    initial = "auto",
57    inherits,
58    applies_to = Text,
59    animation_type = Discrete,
60    property_group = Text,
61    computed_value_type = Unknown,
62    canonical_order = "per grammar",
63)]
64#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
65#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.hyphenate-character"))]
66#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
67#[derive(csskit_derives::NodeWithMetadata)]
68pub struct HyphenateCharacterStyleValue;
69
70/// Represents the style value for `hyphenate-limit-chars` as defined in [css-text-5](https://drafts.csswg.org/css-text-5/#hyphenate-limit-chars).
71///
72/// The hyphenate-limit-chars CSS property sets the number of characters in a word before it is hyphenated and the minimum number of characters on either side of the hyphen.
73///
74/// The grammar is defined as:
75///
76/// ```text,ignore
77/// [ auto | <integer> ]{1,3}
78/// ```
79///
80/// https://drafts.csswg.org/css-text-5/#hyphenate-limit-chars
81#[syntax(" [ auto | <integer> ]{1,3} ")]
82#[derive(
83	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
84)]
85#[declaration_metadata(
86    initial = "auto",
87    inherits,
88    applies_to = Text,
89    animation_type = ByComputedValue,
90    property_group = Text,
91    computed_value_type = Unknown,
92    canonical_order = "per grammar",
93)]
94#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
95#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.hyphenate-limit-chars"))]
96#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
97#[derive(csskit_derives::NodeWithMetadata)]
98pub struct HyphenateLimitCharsStyleValue;
99
100/// Represents the style value for `hyphenate-limit-last` as defined in [css-text-5](https://drafts.csswg.org/css-text-5/#hyphenate-limit-last).
101///
102/// The grammar is defined as:
103///
104/// ```text,ignore
105/// none | always | column | page | spread
106/// ```
107///
108/// https://drafts.csswg.org/css-text-5/#hyphenate-limit-last
109#[syntax(" none | always | column | page | spread ")]
110#[derive(
111	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
112)]
113#[declaration_metadata(
114    initial = "none",
115    inherits,
116    applies_to = Block,
117    animation_type = Discrete,
118    property_group = Text,
119    computed_value_type = Unknown,
120    canonical_order = "per grammar",
121)]
122#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
123#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.hyphenate-limit-last"))]
124#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
125#[derive(csskit_derives::NodeWithMetadata)]
126pub enum HyphenateLimitLastStyleValue {}
127
128/// Represents the style value for `hyphenate-limit-lines` as defined in [css-text-5](https://drafts.csswg.org/css-text-5/#hyphenate-limit-lines).
129///
130/// The grammar is defined as:
131///
132/// ```text,ignore
133/// no-limit | <integer>
134/// ```
135///
136/// https://drafts.csswg.org/css-text-5/#hyphenate-limit-lines
137#[syntax(" no-limit | <integer> ")]
138#[derive(
139	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
140)]
141#[declaration_metadata(
142    initial = "no-limit",
143    inherits,
144    applies_to = Block,
145    animation_type = ByComputedValue,
146    property_group = Text,
147    computed_value_type = Unknown,
148    canonical_order = "per grammar",
149)]
150#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
151#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.hyphenate-limit-lines"))]
152#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
153#[derive(csskit_derives::NodeWithMetadata)]
154pub enum HyphenateLimitLinesStyleValue {}
155
156/// Represents the style value for `hyphenate-limit-zone` as defined in [css-text-5](https://drafts.csswg.org/css-text-5/#hyphenate-limit-zone).
157///
158/// The grammar is defined as:
159///
160/// ```text,ignore
161/// <length-percentage>
162/// ```
163///
164/// https://drafts.csswg.org/css-text-5/#hyphenate-limit-zone
165#[syntax(" <length-percentage> ")]
166#[derive(
167	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
168)]
169#[declaration_metadata(
170    initial = "0",
171    inherits,
172    applies_to = Block,
173    animation_type = ByComputedValue,
174    percentages = LineBox,
175    property_group = Text,
176    computed_value_type = Unknown,
177    canonical_order = "per grammar",
178)]
179#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
180#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.hyphenate-limit-zone"))]
181#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
182#[derive(csskit_derives::NodeWithMetadata)]
183pub struct HyphenateLimitZoneStyleValue;
184
185/// Represents the style value for `hyphens` as defined in [css-text-5](https://drafts.csswg.org/css-text-5/#hyphens).
186///
187/// The hyphens CSS property controls when long words are broken by line wrapping. Although called hyphens, the property applies to word-splitting behavior across languages, such as customary spelling changes or the use of other characters. Support for non-English languages varies significantly.
188///
189/// The grammar is defined as:
190///
191/// ```text,ignore
192/// none | manual | auto
193/// ```
194///
195/// https://drafts.csswg.org/css-text-5/#hyphens
196#[syntax(" none | manual | auto ")]
197#[derive(
198	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
199)]
200#[declaration_metadata(
201    initial = "manual",
202    inherits,
203    applies_to = Text,
204    animation_type = Discrete,
205    property_group = Text,
206    computed_value_type = Unknown,
207    canonical_order = "n/a",
208)]
209#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
210#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.hyphens"))]
211#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
212#[derive(csskit_derives::NodeWithMetadata)]
213pub enum HyphensStyleValue {}
214
215/// Represents the style value for `letter-spacing` as defined in [css-text-5](https://drafts.csswg.org/css-text-5/#letter-spacing).
216///
217/// The letter-spacing CSS property controls the amount of space between each letter in an element or block of text.
218///
219/// The grammar is defined as:
220///
221/// ```text,ignore
222/// normal | <length-percentage>
223/// ```
224///
225/// https://drafts.csswg.org/css-text-5/#letter-spacing
226#[syntax(" normal | <length-percentage> ")]
227#[derive(
228	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
229)]
230#[declaration_metadata(
231    initial = "normal",
232    inherits,
233    applies_to = Unknown,
234    animation_type = ByComputedValue,
235    percentages = Unknown,
236    property_group = Text,
237    computed_value_type = AbsoluteLengthOrPercentage,
238    canonical_order = "n/a",
239)]
240#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
241#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.letter-spacing"))]
242#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
243#[derive(csskit_derives::NodeWithMetadata)]
244pub struct LetterSpacingStyleValue;
245
246/// Represents the style value for `line-break` as defined in [css-text-5](https://drafts.csswg.org/css-text-5/#line-break).
247///
248/// The line-break CSS property sets how strictly to apply rules for wrapping text to new lines, especially for symbols and punctuation.
249///
250/// The grammar is defined as:
251///
252/// ```text,ignore
253/// auto | loose | normal | strict | anywhere
254/// ```
255///
256/// https://drafts.csswg.org/css-text-5/#line-break
257#[syntax(" auto | loose | normal | strict | anywhere ")]
258#[derive(
259	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
260)]
261#[declaration_metadata(
262    initial = "auto",
263    inherits,
264    applies_to = Text,
265    animation_type = Discrete,
266    property_group = Text,
267    computed_value_type = Unknown,
268    canonical_order = "n/a",
269)]
270#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
271#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.line-break"))]
272#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
273#[derive(csskit_derives::NodeWithMetadata)]
274pub enum LineBreakStyleValue {}
275
276/// Represents the style value for `line-padding` as defined in [css-text-5](https://drafts.csswg.org/css-text-5/#line-padding).
277///
278/// The grammar is defined as:
279///
280/// ```text,ignore
281/// <length>
282/// ```
283///
284/// https://drafts.csswg.org/css-text-5/#line-padding
285#[syntax(" <length> ")]
286#[derive(
287	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
288)]
289#[declaration_metadata(
290    initial = "0",
291    inherits,
292    applies_to = Unknown,
293    animation_type = ByComputedValue,
294    property_group = Text,
295    computed_value_type = AbsoluteLength,
296    canonical_order = "per grammar",
297)]
298#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
299#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.line-padding"))]
300#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
301#[derive(csskit_derives::NodeWithMetadata)]
302pub struct LinePaddingStyleValue;
303
304/// Represents the style value for `overflow-wrap` as defined in [css-text-5](https://drafts.csswg.org/css-text-5/#overflow-wrap).
305///
306/// The overflow-wrap CSS property breaks a line of text onto multiple lines inside the targeted element in an otherwise unbreakable place to prevent overflow. The legacy property is word-wrap.
307///
308/// The grammar is defined as:
309///
310/// ```text,ignore
311/// normal | break-word | anywhere
312/// ```
313///
314/// https://drafts.csswg.org/css-text-5/#overflow-wrap
315#[syntax(" normal | break-word | anywhere ")]
316#[derive(
317	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
318)]
319#[declaration_metadata(
320    initial = "normal",
321    inherits,
322    applies_to = Text,
323    animation_type = Discrete,
324    property_group = Text,
325    computed_value_type = Unknown,
326    canonical_order = "n/a",
327)]
328#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
329#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.overflow-wrap"))]
330#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
331#[derive(csskit_derives::NodeWithMetadata)]
332pub enum OverflowWrapStyleValue {}
333
334/// Represents the style value for `tab-size` as defined in [css-text-5](https://drafts.csswg.org/css-text-5/#tab-size).
335///
336/// The tab-size CSS property sets the width of the tab character.
337///
338/// The grammar is defined as:
339///
340/// ```text,ignore
341/// <number [0,∞]> | <length [0,∞]>
342/// ```
343///
344/// https://drafts.csswg.org/css-text-5/#tab-size
345#[syntax(" <number [0,∞]> | <length [0,∞]> ")]
346#[derive(
347	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
348)]
349#[declaration_metadata(
350    initial = "8",
351    inherits,
352    applies_to = Text,
353    animation_type = ByComputedValue,
354    property_group = Text,
355    computed_value_type = SpecifiedKeywordPlusAbsoluteLength,
356    canonical_order = "n/a",
357    unitless_zero_resolves = Number,
358)]
359#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
360#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.tab-size"))]
361#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
362#[derive(csskit_derives::NodeWithMetadata)]
363pub struct TabSizeStyleValue;
364
365/// Represents the style value for `text-align` as defined in [css-text-5](https://drafts.csswg.org/css-text-5/#text-align).
366///
367/// The text-align CSS property sets the horizontal placement of the inner content of a block element.
368///
369/// The grammar is defined as:
370///
371/// ```text,ignore
372/// start | end | left | right | center | <string> | justify | match-parent | justify-all | -webkit-match-parent
373/// ```
374///
375/// https://drafts.csswg.org/css-text-5/#text-align
376#[syntax(
377	" start | end | left | right | center | <string> | justify | match-parent | justify-all | -webkit-match-parent "
378)]
379#[derive(
380	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
381)]
382#[declaration_metadata(
383    initial = "start",
384    inherits,
385    applies_to = Block,
386    animation_type = Discrete,
387    percentages = Unknown,
388    property_group = Text,
389    computed_value_type = Unknown,
390    canonical_order = "n/a",
391)]
392#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
393#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.text-align"))]
394#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
395#[derive(csskit_derives::NodeWithMetadata)]
396pub enum TextAlignStyleValue {}
397
398/// Represents the style value for `text-align-all` as defined in [css-text-5](https://drafts.csswg.org/css-text-5/#text-align-all).
399///
400/// The grammar is defined as:
401///
402/// ```text,ignore
403/// start | end | left | right | center | <string> | justify | match-parent | -webkit-match-parent
404/// ```
405///
406/// https://drafts.csswg.org/css-text-5/#text-align-all
407#[syntax(" start | end | left | right | center | <string> | justify | match-parent | -webkit-match-parent ")]
408#[derive(
409	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
410)]
411#[declaration_metadata(
412    initial = "start",
413    inherits,
414    applies_to = Block,
415    animation_type = Discrete,
416    property_group = Text,
417    computed_value_type = Unknown,
418    canonical_order = "n/a",
419)]
420#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
421#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.text-align-all"))]
422#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
423#[derive(csskit_derives::NodeWithMetadata)]
424pub enum TextAlignAllStyleValue {}
425
426/// Represents the style value for `text-align-last` as defined in [css-text-5](https://drafts.csswg.org/css-text-5/#text-align-last).
427///
428/// The text-align-last CSS property sets the alignment of the last line of text before a forced line break.
429///
430/// The grammar is defined as:
431///
432/// ```text,ignore
433/// auto | start | end | left | right | center | justify | match-parent
434/// ```
435///
436/// https://drafts.csswg.org/css-text-5/#text-align-last
437#[syntax(" auto | start | end | left | right | center | justify | match-parent ")]
438#[derive(
439	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
440)]
441#[declaration_metadata(
442    initial = "auto",
443    inherits,
444    applies_to = Block,
445    animation_type = Discrete,
446    property_group = Text,
447    computed_value_type = Unknown,
448    canonical_order = "n/a",
449)]
450#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
451#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.text-align-last"))]
452#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
453#[derive(csskit_derives::NodeWithMetadata)]
454pub enum TextAlignLastStyleValue {}
455
456/// Represents the style value for `text-autospace` as defined in [css-text-5](https://drafts.csswg.org/css-text-5/#text-autospace).
457///
458/// The text-autospace CSS property sets whether and how to insert spaces in inter-script text (such as when mixing Latin and Chinese characters) and around punctuation.
459///
460/// The grammar is defined as:
461///
462/// ```text,ignore
463/// normal | <autospace> | auto
464/// ```
465///
466/// https://drafts.csswg.org/css-text-5/#text-autospace
467#[syntax(" normal | <autospace> | auto ")]
468#[derive(
469	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
470)]
471#[declaration_metadata(
472    initial = "normal",
473    inherits,
474    applies_to = Text,
475    animation_type = Discrete,
476    property_group = Text,
477    computed_value_type = Unknown,
478    canonical_order = "per grammar",
479)]
480#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
481#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.text-autospace"))]
482#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
483#[derive(csskit_derives::NodeWithMetadata)]
484pub enum TextAutospaceStyleValue {}
485
486/// Represents the style value for `text-fit` as defined in [css-text-5](https://drafts.csswg.org/css-text-5/#text-fit).
487///
488/// The grammar is defined as:
489///
490/// ```text,ignore
491/// [ none | grow | shrink ] [consistent | per-line | per-line-all]? <percentage>?
492/// ```
493///
494/// https://drafts.csswg.org/css-text-5/#text-fit
495#[syntax(" [ none | grow | shrink ] [consistent | per-line | per-line-all]? <percentage>? ")]
496#[derive(
497	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
498)]
499#[declaration_metadata(
500    initial = "none",
501    inherits,
502    applies_to = Block,
503    animation_type = Discrete,
504    property_group = Text,
505    computed_value_type = Unknown,
506    canonical_order = "per grammar",
507)]
508#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
509#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.text-fit"))]
510#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
511#[derive(csskit_derives::NodeWithMetadata)]
512pub struct TextFitStyleValue;
513
514/// Represents the style value for `text-group-align` as defined in [css-text-5](https://drafts.csswg.org/css-text-5/#text-group-align).
515///
516/// The grammar is defined as:
517///
518/// ```text,ignore
519/// none | start | end | left | right | center
520/// ```
521///
522/// https://drafts.csswg.org/css-text-5/#text-group-align
523#[syntax(" none | start | end | left | right | center ")]
524#[derive(
525	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
526)]
527#[declaration_metadata(
528    initial = "none",
529    applies_to = Block,
530    animation_type = Discrete,
531    property_group = Text,
532    computed_value_type = Unknown,
533    canonical_order = "per grammar",
534)]
535#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
536#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.text-group-align"))]
537#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
538#[derive(csskit_derives::NodeWithMetadata)]
539pub enum TextGroupAlignStyleValue {}
540
541/// Represents the style value for `text-indent` as defined in [css-text-5](https://drafts.csswg.org/css-text-5/#text-indent).
542///
543/// The text-indent CSS property sets the size of the empty space (indentation) at the beginning of lines in a text.
544///
545/// The grammar is defined as:
546///
547/// ```text,ignore
548/// [ <length-percentage> ] && hanging? && each-line?
549/// ```
550///
551/// https://drafts.csswg.org/css-text-5/#text-indent
552#[syntax(" [ <length-percentage> ] && hanging? && each-line? ")]
553#[derive(
554	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
555)]
556#[declaration_metadata(
557    initial = "0",
558    inherits,
559    applies_to = Block,
560    animation_type = ByComputedValue,
561    percentages = Unknown,
562    property_group = Text,
563    computed_value_type = Unknown,
564    canonical_order = "per grammar",
565)]
566#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
567#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.text-indent"))]
568#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
569#[derive(csskit_derives::NodeWithMetadata)]
570pub struct TextIndentStyleValue;
571
572/// Represents the style value for `text-justify` as defined in [css-text-5](https://drafts.csswg.org/css-text-5/#text-justify).
573///
574/// The text-justify CSS property sets the justification method of text when text-align: justify is set.
575///
576/// The grammar is defined as:
577///
578/// ```text,ignore
579/// [ auto | none | inter-word | inter-character | ruby ] || no-compress
580/// ```
581///
582/// https://drafts.csswg.org/css-text-5/#text-justify
583#[syntax(" [ auto | none | inter-word | inter-character | ruby ] || no-compress ")]
584#[derive(
585	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
586)]
587#[declaration_metadata(
588    initial = "auto",
589    inherits,
590    applies_to = Text,
591    animation_type = Discrete,
592    property_group = Text,
593    computed_value_type = Unknown,
594    canonical_order = "n/a",
595)]
596#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
597#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.text-justify"))]
598#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
599#[derive(csskit_derives::NodeWithMetadata)]
600pub enum TextJustifyStyleValue {}
601
602/// Represents the style value for `text-spacing` as defined in [css-text-5](https://drafts.csswg.org/css-text-5/#text-spacing).
603///
604/// The grammar is defined as:
605///
606/// ```text,ignore
607/// none | auto | <spacing-trim> || <autospace>
608/// ```
609///
610/// https://drafts.csswg.org/css-text-5/#text-spacing
611#[syntax(" none | auto | <spacing-trim> || <autospace> ")]
612#[derive(
613	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
614)]
615#[declaration_metadata(
616    initial = "see individual properties",
617    inherits,
618    applies_to = Text,
619    animation_type = Discrete,
620    property_group = Text,
621    computed_value_type = Unknown,
622    canonical_order = "per grammar",
623)]
624#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
625#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.text-spacing"))]
626#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
627#[derive(csskit_derives::NodeWithMetadata)]
628pub struct TextSpacingStyleValue;
629
630/// Represents the style value for `text-spacing-trim` as defined in [css-text-5](https://drafts.csswg.org/css-text-5/#text-spacing-trim).
631///
632/// The text-spacing-trim CSS property controls spacing around CJK characters, avoiding excessive whitespace when using full-width punctuation characters.
633///
634/// The grammar is defined as:
635///
636/// ```text,ignore
637/// <spacing-trim> | auto
638/// ```
639///
640/// https://drafts.csswg.org/css-text-5/#text-spacing-trim
641#[syntax(" <spacing-trim> | auto ")]
642#[derive(
643	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
644)]
645#[declaration_metadata(
646    initial = "normal",
647    inherits,
648    applies_to = Text,
649    animation_type = Discrete,
650    property_group = Text,
651    computed_value_type = Unknown,
652    canonical_order = "per grammar",
653)]
654#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
655#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.text-spacing-trim"))]
656#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
657#[derive(csskit_derives::NodeWithMetadata)]
658pub struct TextSpacingTrimStyleValue;
659
660/// Represents the style value for `text-transform` as defined in [css-text-5](https://drafts.csswg.org/css-text-5/#text-transform).
661///
662/// The text-transform CSS property sets text case and capitalization.
663///
664/// The grammar is defined as:
665///
666/// ```text,ignore
667/// none | [capitalize | uppercase | lowercase ] || full-width || full-size-kana | math-auto
668/// ```
669///
670/// https://drafts.csswg.org/css-text-5/#text-transform
671#[syntax(" none | [capitalize | uppercase | lowercase ] || full-width || full-size-kana | math-auto ")]
672#[derive(
673	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
674)]
675#[declaration_metadata(
676    initial = "none",
677    inherits,
678    applies_to = Text,
679    animation_type = Discrete,
680    property_group = Text,
681    computed_value_type = Unknown,
682    canonical_order = "n/a",
683)]
684#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
685#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.text-transform"))]
686#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
687#[derive(csskit_derives::NodeWithMetadata)]
688pub enum TextTransformStyleValue {}
689
690/// Represents the style value for `text-wrap` as defined in [css-text-5](https://drafts.csswg.org/css-text-5/#text-wrap).
691///
692/// The text-wrap CSS property sets how lines break in text that overflows the container. It is a shorthand for text-wrap-style and text-wrap-mode.
693///
694/// The grammar is defined as:
695///
696/// ```text,ignore
697/// <'text-wrap-mode'> || <'text-wrap-style'>
698/// ```
699///
700/// https://drafts.csswg.org/css-text-5/#text-wrap
701#[syntax(" <'text-wrap-mode'> || <'text-wrap-style'> ")]
702#[derive(
703	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
704)]
705#[declaration_metadata(
706    initial = "wrap",
707    inherits = Unknown,
708    applies_to = Unknown,
709    animation_type = Unknown,
710    percentages = Unknown,
711    longhands = TextWrapMode|TextWrapStyle,
712    property_group = Text,
713    computed_value_type = Unknown,
714    canonical_order = "per grammar",
715)]
716#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
717#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.text-wrap"))]
718#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
719#[derive(csskit_derives::NodeWithMetadata)]
720pub struct TextWrapStyleValue;
721
722/// Represents the style value for `text-wrap-mode` as defined in [css-text-5](https://drafts.csswg.org/css-text-5/#text-wrap-mode).
723///
724/// The text-wrap CSS property sets how lines break in text that overflows the container. It is a shorthand for text-wrap-style and text-wrap-mode.
725///
726/// The grammar is defined as:
727///
728/// ```text,ignore
729/// wrap | nowrap
730/// ```
731///
732/// https://drafts.csswg.org/css-text-5/#text-wrap-mode
733#[syntax(" wrap | nowrap ")]
734#[derive(
735	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
736)]
737#[declaration_metadata(
738    initial = "wrap",
739    inherits,
740    applies_to = Text,
741    animation_type = Discrete,
742    shorthand_group = TextWrap,
743    property_group = Text,
744    computed_value_type = Unknown,
745    canonical_order = "per grammar",
746)]
747#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
748#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.text-wrap-mode"))]
749#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
750#[derive(csskit_derives::NodeWithMetadata)]
751pub enum TextWrapModeStyleValue {}
752
753/// Represents the style value for `text-wrap-style` as defined in [css-text-5](https://drafts.csswg.org/css-text-5/#text-wrap-style).
754///
755/// The text-wrap CSS property sets how lines break in text that overflows the container. It is a shorthand for text-wrap-style and text-wrap-mode.
756///
757/// The grammar is defined as:
758///
759/// ```text,ignore
760/// auto | balance | stable | pretty | avoid-orphans
761/// ```
762///
763/// https://drafts.csswg.org/css-text-5/#text-wrap-style
764#[syntax(" auto | balance | stable | pretty | avoid-orphans ")]
765#[derive(
766	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
767)]
768#[declaration_metadata(
769    initial = "auto",
770    inherits,
771    applies_to = Unknown,
772    animation_type = Discrete,
773    shorthand_group = TextWrap,
774    property_group = Text,
775    computed_value_type = Unknown,
776    canonical_order = "per grammar",
777)]
778#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
779#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.text-wrap-style"))]
780#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
781#[derive(csskit_derives::NodeWithMetadata)]
782pub enum TextWrapStyleStyleValue {}
783
784/// Represents the style value for `white-space` as defined in [css-text-5](https://drafts.csswg.org/css-text-5/#white-space).
785///
786/// The white-space CSS property sets how white space is collapsed and how lines wrap. It is a shorthand for white-space-collapse and text-wrap-mode.
787///
788/// The grammar is defined as:
789///
790/// ```text,ignore
791/// normal | pre | pre-wrap | pre-line | <'white-space-collapse'> || <'text-wrap-mode'> || <'white-space-trim'>
792/// ```
793///
794/// https://drafts.csswg.org/css-text-5/#white-space
795#[syntax(
796	" normal | pre | pre-wrap | pre-line | <'white-space-collapse'> || <'text-wrap-mode'> || <'white-space-trim'> "
797)]
798#[derive(
799	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
800)]
801#[declaration_metadata(
802    initial = "normal",
803    inherits = Unknown,
804    applies_to = Text,
805    animation_type = Discrete,
806    property_group = Text,
807    computed_value_type = Unknown,
808    canonical_order = "n/a",
809)]
810#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
811#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.white-space"))]
812#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
813#[derive(csskit_derives::NodeWithMetadata)]
814pub enum WhiteSpaceStyleValue {}
815
816/// Represents the style value for `white-space-collapse` as defined in [css-text-5](https://drafts.csswg.org/css-text-5/#white-space-collapse).
817///
818/// The white-space-collapse CSS property sets whether new line characters are shown as line breaks, and whether multiple consecutive spaces are all displayed or combined.
819///
820/// The grammar is defined as:
821///
822/// ```text,ignore
823/// collapse | discard | preserve | preserve-breaks | preserve-spaces | break-spaces
824/// ```
825///
826/// https://drafts.csswg.org/css-text-5/#white-space-collapse
827#[syntax(" collapse | discard | preserve | preserve-breaks | preserve-spaces | break-spaces ")]
828#[derive(
829	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
830)]
831#[declaration_metadata(
832    initial = "collapse",
833    inherits,
834    applies_to = Text,
835    animation_type = Discrete,
836    property_group = Text,
837    computed_value_type = Unknown,
838    canonical_order = "per grammar",
839)]
840#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
841#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.white-space-collapse"))]
842#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
843#[derive(csskit_derives::NodeWithMetadata)]
844pub enum WhiteSpaceCollapseStyleValue {}
845
846/// Represents the style value for `white-space-trim` as defined in [css-text-5](https://drafts.csswg.org/css-text-5/#white-space-trim).
847///
848/// The grammar is defined as:
849///
850/// ```text,ignore
851/// none | discard-before || discard-after || discard-inner
852/// ```
853///
854/// https://drafts.csswg.org/css-text-5/#white-space-trim
855#[syntax(" none | discard-before || discard-after || discard-inner ")]
856#[derive(
857	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
858)]
859#[declaration_metadata(
860    initial = "none",
861    applies_to = Unknown,
862    animation_type = Discrete,
863    property_group = Text,
864    computed_value_type = Unknown,
865    canonical_order = "per grammar",
866)]
867#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
868#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.white-space-trim"))]
869#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
870#[derive(csskit_derives::NodeWithMetadata)]
871pub struct WhiteSpaceTrimStyleValue;
872
873/// Represents the style value for `word-break` as defined in [css-text-5](https://drafts.csswg.org/css-text-5/#word-break).
874///
875/// The word-break CSS property sets how lines break within words.
876///
877/// The grammar is defined as:
878///
879/// ```text,ignore
880/// normal | break-all | keep-all | manual | auto-phrase | break-word
881/// ```
882///
883/// https://drafts.csswg.org/css-text-5/#word-break
884#[syntax(" normal | break-all | keep-all | manual | auto-phrase | break-word ")]
885#[derive(
886	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
887)]
888#[declaration_metadata(
889    initial = "normal",
890    inherits,
891    applies_to = Text,
892    animation_type = Discrete,
893    property_group = Text,
894    computed_value_type = Unknown,
895    canonical_order = "n/a",
896)]
897#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
898#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.word-break"))]
899#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
900#[derive(csskit_derives::NodeWithMetadata)]
901pub enum WordBreakStyleValue {}
902
903/// Represents the style value for `word-space-transform` as defined in [css-text-5](https://drafts.csswg.org/css-text-5/#word-space-transform).
904///
905/// The grammar is defined as:
906///
907/// ```text,ignore
908/// none | [ space | ideographic-space ] && auto-phrase?
909/// ```
910///
911/// https://drafts.csswg.org/css-text-5/#word-space-transform
912#[syntax(" none | [ space | ideographic-space ] && auto-phrase? ")]
913#[derive(
914	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
915)]
916#[declaration_metadata(
917    initial = "none",
918    inherits,
919    applies_to = Text,
920    animation_type = Discrete,
921    property_group = Text,
922    computed_value_type = AsSpecified,
923    canonical_order = "per grammar",
924)]
925#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
926#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.word-space-transform"))]
927#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
928#[derive(csskit_derives::NodeWithMetadata)]
929pub enum WordSpaceTransformStyleValue {}
930
931/// Represents the style value for `word-spacing` as defined in [css-text-5](https://drafts.csswg.org/css-text-5/#word-spacing).
932///
933/// The word-spacing CSS property sets the amount of white space between words.
934///
935/// The grammar is defined as:
936///
937/// ```text,ignore
938/// normal | <length-percentage>
939/// ```
940///
941/// https://drafts.csswg.org/css-text-5/#word-spacing
942#[syntax(" normal | <length-percentage> ")]
943#[derive(
944	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
945)]
946#[declaration_metadata(
947    initial = "normal",
948    inherits,
949    applies_to = Text,
950    animation_type = ByComputedValue,
951    percentages = Unknown,
952    property_group = Text,
953    computed_value_type = AbsoluteLengthOrPercentage,
954    canonical_order = "n/a",
955)]
956#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
957#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.word-spacing"))]
958#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
959#[derive(csskit_derives::NodeWithMetadata)]
960pub struct WordSpacingStyleValue;
961
962/// Represents the style value for `wrap-after` as defined in [css-text-5](https://drafts.csswg.org/css-text-5/#wrap-after).
963///
964/// The grammar is defined as:
965///
966/// ```text,ignore
967/// auto | avoid | avoid-line | avoid-flex | line | flex
968/// ```
969///
970/// https://drafts.csswg.org/css-text-5/#wrap-after
971#[syntax(" auto | avoid | avoid-line | avoid-flex | line | flex ")]
972#[derive(
973	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
974)]
975#[declaration_metadata(
976    initial = "auto",
977    applies_to = Unknown,
978    animation_type = Discrete,
979    property_group = Text,
980    computed_value_type = Unknown,
981    canonical_order = "per grammar",
982)]
983#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
984#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.wrap-after"))]
985#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
986#[derive(csskit_derives::NodeWithMetadata)]
987pub enum WrapAfterStyleValue {}
988
989/// Represents the style value for `wrap-before` as defined in [css-text-5](https://drafts.csswg.org/css-text-5/#wrap-before).
990///
991/// The grammar is defined as:
992///
993/// ```text,ignore
994/// auto | avoid | avoid-line | avoid-flex | line | flex
995/// ```
996///
997/// https://drafts.csswg.org/css-text-5/#wrap-before
998#[syntax(" auto | avoid | avoid-line | avoid-flex | line | flex ")]
999#[derive(
1000	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
1001)]
1002#[declaration_metadata(
1003    initial = "auto",
1004    applies_to = Unknown,
1005    animation_type = Discrete,
1006    property_group = Text,
1007    computed_value_type = Unknown,
1008    canonical_order = "per grammar",
1009)]
1010#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
1011#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.wrap-before"))]
1012#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
1013#[derive(csskit_derives::NodeWithMetadata)]
1014pub enum WrapBeforeStyleValue {}
1015
1016/// Represents the style value for `wrap-inside` as defined in [css-text-5](https://drafts.csswg.org/css-text-5/#wrap-inside).
1017///
1018/// The grammar is defined as:
1019///
1020/// ```text,ignore
1021/// auto | avoid
1022/// ```
1023///
1024/// https://drafts.csswg.org/css-text-5/#wrap-inside
1025#[syntax(" auto | avoid ")]
1026#[derive(
1027	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
1028)]
1029#[declaration_metadata(
1030    initial = "auto",
1031    applies_to = Unknown,
1032    animation_type = Discrete,
1033    property_group = Text,
1034    computed_value_type = Unknown,
1035    canonical_order = "per grammar",
1036)]
1037#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
1038#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.wrap-inside"))]
1039#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
1040#[derive(csskit_derives::NodeWithMetadata)]
1041pub enum WrapInsideStyleValue {}