css_ast/values/ui/
mod.rs

1#![allow(warnings)]
2//! https://drafts.csswg.org/css-ui-4/
3
4mod impls;
5use super::prelude::*;
6use impls::*;
7/// Represents the style value for `accent-color` as defined in [css-ui-4](https://drafts.csswg.org/css-ui-4/#accent-color).
8///
9/// The accent-color CSS property sets a color for checkboxes, radio buttons, and other form controls.
10///
11/// The grammar is defined as:
12///
13/// ```text,ignore
14/// auto | <color>
15/// ```
16///
17/// https://drafts.csswg.org/css-ui-4/#accent-color
18#[syntax(" auto | <color> ")]
19#[derive(
20	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
21)]
22#[declaration_metadata(
23    initial = "auto",
24    inherits,
25    applies_to = Elements,
26    animation_type = ByComputedValue,
27    property_group = Ui,
28    computed_value_type = Unknown,
29    canonical_order = "per grammar",
30)]
31#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
32#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.accent-color"))]
33#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
34pub struct AccentColorStyleValue;
35
36/// Represents the style value for `appearance` as defined in [css-ui-4](https://drafts.csswg.org/css-ui-4/#appearance).
37///
38/// The appearance CSS property controls the appearance of form controls. Using appearance: none disables any default native appearance and allows the elements to be styled with CSS.
39///
40/// The grammar is defined as:
41///
42/// ```text,ignore
43/// none | auto | base | base-select | <compat-auto> | <compat-special>
44/// ```
45///
46/// https://drafts.csswg.org/css-ui-4/#appearance
47#[syntax(" none | auto | base | base-select | <compat-auto> | <compat-special> ")]
48#[derive(
49	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
50)]
51#[declaration_metadata(
52    initial = "none",
53    applies_to = Elements,
54    animation_type = Discrete,
55    property_group = Ui,
56    computed_value_type = Unknown,
57    canonical_order = "per grammar",
58)]
59#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
60#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.appearance"))]
61#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
62pub enum AppearanceStyleValue {}
63
64/// Represents the style value for `caret` as defined in [css-ui-4](https://drafts.csswg.org/css-ui-4/#caret).
65///
66/// The grammar is defined as:
67///
68/// ```text,ignore
69/// <'caret-color'> || <'caret-animation'> || <'caret-shape'>
70/// ```
71///
72/// https://drafts.csswg.org/css-ui-4/#caret
73#[syntax(" <'caret-color'> || <'caret-animation'> || <'caret-shape'> ")]
74#[derive(
75	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
76)]
77#[declaration_metadata(
78    initial = "auto",
79    inherits,
80    applies_to = Unknown,
81    animation_type = Unknown,
82    property_group = Ui,
83    computed_value_type = Unknown,
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.caret"))]
88#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
89pub struct CaretStyleValue;
90
91/// Represents the style value for `caret-animation` as defined in [css-ui-4](https://drafts.csswg.org/css-ui-4/#caret-animation).
92///
93/// The grammar is defined as:
94///
95/// ```text,ignore
96/// auto | manual
97/// ```
98///
99/// https://drafts.csswg.org/css-ui-4/#caret-animation
100#[syntax(" auto | manual ")]
101#[derive(
102	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
103)]
104#[declaration_metadata(
105    initial = "auto",
106    inherits,
107    applies_to = Unknown,
108    animation_type = Discrete,
109    property_group = Ui,
110    computed_value_type = Unknown,
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.caret-animation"))]
115#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
116pub enum CaretAnimationStyleValue {}
117
118/// Represents the style value for `caret-color` as defined in [css-ui-4](https://drafts.csswg.org/css-ui-4/#caret-color).
119///
120/// The caret-color CSS property sets the color of the text insertion pointer in a text input.
121///
122/// The grammar is defined as:
123///
124/// ```text,ignore
125/// auto | <color>
126/// ```
127///
128/// https://drafts.csswg.org/css-ui-4/#caret-color
129#[syntax(" auto | <color> ")]
130#[derive(
131	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
132)]
133#[declaration_metadata(
134    initial = "auto",
135    inherits,
136    applies_to = Unknown,
137    animation_type = ByComputedValue,
138    property_group = Ui,
139    computed_value_type = Unknown,
140    canonical_order = "per grammar",
141)]
142#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
143#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.caret-color"))]
144#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
145pub struct CaretColorStyleValue;
146
147/// Represents the style value for `caret-shape` as defined in [css-ui-4](https://drafts.csswg.org/css-ui-4/#caret-shape).
148///
149/// The caret-shape CSS property controls the shape of the insertion caret, the symbol that shows where the next character is to be inserted or deleted.
150///
151/// The grammar is defined as:
152///
153/// ```text,ignore
154/// auto | bar | block | underscore
155/// ```
156///
157/// https://drafts.csswg.org/css-ui-4/#caret-shape
158#[syntax(" auto | bar | block | underscore ")]
159#[derive(
160	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
161)]
162#[declaration_metadata(
163    initial = "auto",
164    inherits,
165    applies_to = Unknown,
166    animation_type = ByComputedValue,
167    property_group = Ui,
168    computed_value_type = Unknown,
169    canonical_order = "per grammar",
170)]
171#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
172#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.caret-shape"))]
173#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
174pub enum CaretShapeStyleValue {}
175
176/// Represents the style value for `cursor` as defined in [css-ui-4](https://drafts.csswg.org/css-ui-4/#cursor).
177///
178/// The cursor CSS property styles the pointer, allowing you to provide hints to the user on how to interact with the hovered element.
179///
180/// The grammar is defined as:
181///
182/// ```text,ignore
183/// [<cursor-image>,]* <cursor-predefined>
184/// ```
185///
186/// https://drafts.csswg.org/css-ui-4/#cursor
187#[syntax(" [<cursor-image>,]* <cursor-predefined> ")]
188#[derive(
189	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
190)]
191#[declaration_metadata(
192    initial = "auto",
193    inherits,
194    applies_to = Elements,
195    animation_type = Discrete,
196    property_group = Ui,
197    computed_value_type = SpecifiedWithAbsoluteUrls,
198    canonical_order = "per grammar",
199)]
200#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
201#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.cursor"))]
202#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
203pub struct CursorStyleValue<'a>;
204
205/// Represents the style value for `interactivity` as defined in [css-ui-4](https://drafts.csswg.org/css-ui-4/#interactivity).
206///
207/// The interactivity: inert CSS declaration makes an element and its descendants inert, like when using the inert HTML attribute. Inert elements can't be focused or clicked, their text can't be selected or found using the browser's find-in-page feature.
208///
209/// The grammar is defined as:
210///
211/// ```text,ignore
212/// auto | inert
213/// ```
214///
215/// https://drafts.csswg.org/css-ui-4/#interactivity
216#[syntax(" auto | inert ")]
217#[derive(
218	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
219)]
220#[declaration_metadata(
221    initial = "auto",
222    inherits,
223    applies_to = Elements,
224    animation_type = Discrete,
225    property_group = Ui,
226    computed_value_type = AsSpecified,
227    canonical_order = "per grammar",
228)]
229#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
230#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.interactivity"))]
231#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
232pub enum InteractivityStyleValue {}
233
234/// Represents the style value for `interest-delay` as defined in [css-ui-4](https://drafts.csswg.org/css-ui-4/#interest-delay).
235///
236/// The grammar is defined as:
237///
238/// ```text,ignore
239/// <'interest-delay-start'>{1,2}
240/// ```
241///
242/// https://drafts.csswg.org/css-ui-4/#interest-delay
243#[syntax(" <'interest-delay-start'>{1,2} ")]
244#[derive(
245	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
246)]
247#[declaration_metadata(
248    initial = "see individual properties",
249    inherits = Unknown,
250    applies_to = Unknown,
251    percentages = Unknown,
252    animation_type = Unknown,
253    property_group = Ui,
254    computed_value_type = Unknown,
255    canonical_order = "per grammar",
256)]
257#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
258#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.interest-delay"))]
259#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
260pub struct InterestDelayStyleValue;
261
262/// Represents the style value for `interest-delay-end` as defined in [css-ui-4](https://drafts.csswg.org/css-ui-4/#interest-delay-end).
263///
264/// The grammar is defined as:
265///
266/// ```text,ignore
267/// normal | <time>
268/// ```
269///
270/// https://drafts.csswg.org/css-ui-4/#interest-delay-end
271#[syntax(" normal | <time> ")]
272#[derive(
273	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
274)]
275#[declaration_metadata(
276    initial = "normal",
277    inherits,
278    applies_to = Elements,
279    animation_type = ByComputedValue,
280    property_group = Ui,
281    computed_value_type = Unknown,
282    canonical_order = "per grammar",
283)]
284#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
285#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.interest-delay-end"))]
286#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
287pub enum InterestDelayEndStyleValue {}
288
289/// Represents the style value for `interest-delay-start` as defined in [css-ui-4](https://drafts.csswg.org/css-ui-4/#interest-delay-start).
290///
291/// The grammar is defined as:
292///
293/// ```text,ignore
294/// normal | <time>
295/// ```
296///
297/// https://drafts.csswg.org/css-ui-4/#interest-delay-start
298#[syntax(" normal | <time> ")]
299#[derive(
300	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
301)]
302#[declaration_metadata(
303    initial = "normal",
304    inherits,
305    applies_to = Elements,
306    animation_type = ByComputedValue,
307    property_group = Ui,
308    computed_value_type = Unknown,
309    canonical_order = "per grammar",
310)]
311#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
312#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.interest-delay-start"))]
313#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
314pub enum InterestDelayStartStyleValue {}
315
316// /// Represents the style value for `nav-down` as defined in [css-ui-4](https://drafts.csswg.org/css-ui-4/#nav-down).
317// ///
318// /// The grammar is defined as:
319// ///
320// /// ```text,ignore
321// /// auto | <id> [ current | root | <target-name> ]?
322// /// ```
323// ///
324// /// https://drafts.csswg.org/css-ui-4/#nav-down
325// #[syntax(" auto | <id> [ current | root | <target-name> ]? ")]
326// #[derive(
327//     Parse,
328//     Peek,
329//     ToSpan,
330//     ToCursors,
331//     DeclarationMetadata,
332//     SemanticEq,
333//     Debug,
334//     Clone,
335//     PartialEq,
336//     Eq,
337//     PartialOrd,
338//     Ord,
339//     Hash,
340// )]
341// #[declaration_metadata(
342//     initial = "auto",
343//     applies_to = Elements,
344//     animation_type = Discrete,
345//     property_group = Ui,
346//     computed_value_type = AsSpecified,
347//     canonical_order = "per grammar",
348// )]
349// #[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
350// #[cfg_attr(
351//     feature = "css_feature_data",
352//     derive(ToCSSFeature),
353//     css_feature("css.properties.nav-down")
354// )]
355// #[cfg_attr(feature = "visitable", derive(Visitable), visit)]
356// pub struct NavDownStyleValue;
357
358// /// Represents the style value for `nav-left` as defined in [css-ui-4](https://drafts.csswg.org/css-ui-4/#nav-left).
359// ///
360// /// The grammar is defined as:
361// ///
362// /// ```text,ignore
363// /// auto | <id> [ current | root | <target-name> ]?
364// /// ```
365// ///
366// /// https://drafts.csswg.org/css-ui-4/#nav-left
367// #[syntax(" auto | <id> [ current | root | <target-name> ]? ")]
368// #[derive(
369//     Parse,
370//     Peek,
371//     ToSpan,
372//     ToCursors,
373//     DeclarationMetadata,
374//     SemanticEq,
375//     Debug,
376//     Clone,
377//     PartialEq,
378//     Eq,
379//     PartialOrd,
380//     Ord,
381//     Hash,
382// )]
383// #[declaration_metadata(
384//     initial = "auto",
385//     applies_to = Elements,
386//     animation_type = Discrete,
387//     property_group = Ui,
388//     computed_value_type = AsSpecified,
389//     canonical_order = "per grammar",
390//     box_side = Left,
391// )]
392// #[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
393// #[cfg_attr(
394//     feature = "css_feature_data",
395//     derive(ToCSSFeature),
396//     css_feature("css.properties.nav-left")
397// )]
398// #[cfg_attr(feature = "visitable", derive(Visitable), visit)]
399// pub struct NavLeftStyleValue;
400
401// /// Represents the style value for `nav-right` as defined in [css-ui-4](https://drafts.csswg.org/css-ui-4/#nav-right).
402// ///
403// /// The grammar is defined as:
404// ///
405// /// ```text,ignore
406// /// auto | <id> [ current | root | <target-name> ]?
407// /// ```
408// ///
409// /// https://drafts.csswg.org/css-ui-4/#nav-right
410// #[syntax(" auto | <id> [ current | root | <target-name> ]? ")]
411// #[derive(
412//     Parse,
413//     Peek,
414//     ToSpan,
415//     ToCursors,
416//     DeclarationMetadata,
417//     SemanticEq,
418//     Debug,
419//     Clone,
420//     PartialEq,
421//     Eq,
422//     PartialOrd,
423//     Ord,
424//     Hash,
425// )]
426// #[declaration_metadata(
427//     initial = "auto",
428//     applies_to = Elements,
429//     animation_type = Discrete,
430//     property_group = Ui,
431//     computed_value_type = AsSpecified,
432//     canonical_order = "per grammar",
433//     box_side = Right,
434// )]
435// #[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
436// #[cfg_attr(
437//     feature = "css_feature_data",
438//     derive(ToCSSFeature),
439//     css_feature("css.properties.nav-right")
440// )]
441// #[cfg_attr(feature = "visitable", derive(Visitable), visit)]
442// pub struct NavRightStyleValue;
443
444// /// Represents the style value for `nav-up` as defined in [css-ui-4](https://drafts.csswg.org/css-ui-4/#nav-up).
445// ///
446// /// The grammar is defined as:
447// ///
448// /// ```text,ignore
449// /// auto | <id> [ current | root | <target-name> ]?
450// /// ```
451// ///
452// /// https://drafts.csswg.org/css-ui-4/#nav-up
453// #[syntax(" auto | <id> [ current | root | <target-name> ]? ")]
454// #[derive(
455//     Parse,
456//     Peek,
457//     ToSpan,
458//     ToCursors,
459//     DeclarationMetadata,
460//     SemanticEq,
461//     Debug,
462//     Clone,
463//     PartialEq,
464//     Eq,
465//     PartialOrd,
466//     Ord,
467//     Hash,
468// )]
469// #[declaration_metadata(
470//     initial = "auto",
471//     applies_to = Elements,
472//     animation_type = Discrete,
473//     property_group = Ui,
474//     computed_value_type = AsSpecified,
475//     canonical_order = "per grammar",
476// )]
477// #[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
478// #[cfg_attr(
479//     feature = "css_feature_data",
480//     derive(ToCSSFeature),
481//     css_feature("css.properties.nav-up")
482// )]
483// #[cfg_attr(feature = "visitable", derive(Visitable), visit)]
484// pub struct NavUpStyleValue;
485
486/// Represents the style value for `outline` as defined in [css-ui-4](https://drafts.csswg.org/css-ui-4/#outline).
487///
488/// The outline CSS shorthand sets the color, style, and width of a line around an element, outside of the border.
489///
490/// The grammar is defined as:
491///
492/// ```text,ignore
493/// <'outline-width'> || <'outline-style'> || <'outline-color'>
494/// ```
495///
496/// https://drafts.csswg.org/css-ui-4/#outline
497#[syntax(" <'outline-width'> || <'outline-style'> || <'outline-color'> ")]
498#[derive(
499	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
500)]
501#[declaration_metadata(
502    initial = "see individual properties",
503    applies_to = Elements,
504    animation_type = Unknown,
505    property_group = Ui,
506    computed_value_type = Unknown,
507    canonical_order = "per grammar",
508)]
509#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
510#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.outline"))]
511#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
512pub struct OutlineStyleValue<'a>;
513
514/// Represents the style value for `outline-color` as defined in [css-ui-4](https://drafts.csswg.org/css-ui-4/#outline-color).
515///
516/// The outline-color, outline-style, and outline-width and outline-offset CSS properties style a line around an element, outside of the border.
517///
518/// The grammar is defined as:
519///
520/// ```text,ignore
521/// auto | <'border-top-color'>
522/// ```
523///
524/// https://drafts.csswg.org/css-ui-4/#outline-color
525#[syntax(" auto | <'border-top-color'> ")]
526#[derive(
527	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
528)]
529#[declaration_metadata(
530    initial = "auto",
531    applies_to = Elements,
532    animation_type = ByComputedValue,
533    property_group = Ui,
534    computed_value_type = Unknown,
535    canonical_order = "per grammar",
536)]
537#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
538#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.outline-color"))]
539#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
540pub struct OutlineColorStyleValue<'a>;
541
542/// Represents the style value for `outline-offset` as defined in [css-ui-4](https://drafts.csswg.org/css-ui-4/#outline-offset).
543///
544/// The outline-color, outline-style, and outline-width and outline-offset CSS properties style a line around an element, outside of the border.
545///
546/// The grammar is defined as:
547///
548/// ```text,ignore
549/// <length>
550/// ```
551///
552/// https://drafts.csswg.org/css-ui-4/#outline-offset
553#[syntax(" <length> ")]
554#[derive(
555	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
556)]
557#[declaration_metadata(
558    initial = "0",
559    applies_to = Elements,
560    animation_type = ByComputedValue,
561    property_group = Ui,
562    computed_value_type = AbsoluteLength,
563    canonical_order = "per grammar",
564)]
565#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
566#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.outline-offset"))]
567#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
568pub struct OutlineOffsetStyleValue;
569
570/// Represents the style value for `outline-style` as defined in [css-ui-4](https://drafts.csswg.org/css-ui-4/#outline-style).
571///
572/// The outline-color, outline-style, and outline-width and outline-offset CSS properties style a line around an element, outside of the border.
573///
574/// The grammar is defined as:
575///
576/// ```text,ignore
577/// auto | <outline-line-style>
578/// ```
579///
580/// https://drafts.csswg.org/css-ui-4/#outline-style
581#[syntax(" auto | <outline-line-style> ")]
582#[derive(
583	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
584)]
585#[declaration_metadata(
586    initial = "none",
587    applies_to = Elements,
588    animation_type = ByComputedValue,
589    property_group = Ui,
590    computed_value_type = Unknown,
591    canonical_order = "per grammar",
592)]
593#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
594#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.outline-style"))]
595#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
596pub struct OutlineStyleStyleValue;
597
598/// Represents the style value for `outline-width` as defined in [css-ui-4](https://drafts.csswg.org/css-ui-4/#outline-width).
599///
600/// The outline-color, outline-style, and outline-width and outline-offset CSS properties style a line around an element, outside of the border.
601///
602/// The grammar is defined as:
603///
604/// ```text,ignore
605/// <line-width>
606/// ```
607///
608/// https://drafts.csswg.org/css-ui-4/#outline-width
609#[syntax(" <line-width> ")]
610#[derive(
611	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
612)]
613#[declaration_metadata(
614    initial = "medium",
615    applies_to = Elements,
616    animation_type = ByComputedValue,
617    property_group = Ui,
618    computed_value_type = AbsoluteLengthOrNone,
619    canonical_order = "per grammar",
620)]
621#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
622#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.outline-width"))]
623#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
624pub struct OutlineWidthStyleValue;
625
626/// Represents the style value for `pointer-events` as defined in [css-ui-4](https://drafts.csswg.org/css-ui-4/#pointer-events).
627///
628/// The pointer-events CSS property sets whether a user can interact with an element using a mouse, touch, or other pointing input device.
629///
630/// The grammar is defined as:
631///
632/// ```text,ignore
633/// auto | none
634/// ```
635///
636/// https://drafts.csswg.org/css-ui-4/#pointer-events
637#[syntax(" auto | none ")]
638#[derive(
639	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
640)]
641#[declaration_metadata(
642    initial = "auto",
643    inherits,
644    applies_to = Elements,
645    animation_type = ByComputedValue,
646    property_group = Ui,
647    computed_value_type = Unknown,
648    canonical_order = "per grammar",
649)]
650#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
651#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.pointer-events"))]
652#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
653pub enum PointerEventsStyleValue {}
654
655/// Represents the style value for `resize` as defined in [css-ui-4](https://drafts.csswg.org/css-ui-4/#resize).
656///
657/// The resize CSS property sets whether an element can be resized by the user, and on which axes.
658///
659/// The grammar is defined as:
660///
661/// ```text,ignore
662/// none | both | horizontal | vertical | block | inline
663/// ```
664///
665/// https://drafts.csswg.org/css-ui-4/#resize
666#[syntax(" none | both | horizontal | vertical | block | inline ")]
667#[derive(
668	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
669)]
670#[declaration_metadata(
671    initial = "none",
672    applies_to = Unknown,
673    animation_type = Discrete,
674    property_group = Ui,
675    computed_value_type = Unknown,
676    canonical_order = "per grammar",
677)]
678#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
679#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.resize"))]
680#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
681pub enum ResizeStyleValue {}
682
683/// Represents the style value for `user-select` as defined in [css-ui-4](https://drafts.csswg.org/css-ui-4/#user-select).
684///
685/// The user-select CSS property controls which elements can be selected by the user.
686///
687/// The grammar is defined as:
688///
689/// ```text,ignore
690/// auto | text | none | contain | all
691/// ```
692///
693/// https://drafts.csswg.org/css-ui-4/#user-select
694#[syntax(" auto | text | none | contain | all ")]
695#[derive(
696	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
697)]
698#[declaration_metadata(
699    initial = "auto",
700    applies_to = Unknown,
701    animation_type = Discrete,
702    property_group = Ui,
703    computed_value_type = Unknown,
704    canonical_order = "per grammar",
705)]
706#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
707#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.user-select"))]
708#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
709pub enum UserSelectStyleValue {}