css_ast/values/forms/
mod.rs

1#![allow(warnings)]
2//! https://drafts.csswg.org/css-forms-1/
3
4mod impls;
5use super::prelude::*;
6use impls::*;
7/// Represents the style value for `field-sizing` as defined in [css-forms-1](https://drafts.csswg.org/css-forms-1/#field-sizing).
8///
9/// The field-sizing CSS property allows form controls such as <textarea> to be sized based on their content.
10///
11/// The grammar is defined as:
12///
13/// ```text,ignore
14/// fixed | content
15/// ```
16///
17/// https://drafts.csswg.org/css-forms-1/#field-sizing
18#[syntax(" fixed | content ")]
19#[derive(
20	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
21)]
22#[declaration_metadata(
23    initial = "fixed",
24    applies_to = Unknown,
25    animation_type = Discrete,
26    property_group = Forms,
27    computed_value_type = AsSpecified,
28    canonical_order = "per grammar",
29)]
30#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
31#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.field-sizing"))]
32#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
33pub enum FieldSizingStyleValue {}
34
35/// Represents the style value for `input-security` as defined in [css-forms-1](https://drafts.csswg.org/css-forms-1/#input-security).
36///
37/// The grammar is defined as:
38///
39/// ```text,ignore
40/// auto | none
41/// ```
42///
43/// https://drafts.csswg.org/css-forms-1/#input-security
44#[syntax(" auto | none ")]
45#[derive(
46	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
47)]
48#[declaration_metadata(
49    initial = "auto",
50    applies_to = Unknown,
51    animation_type = ByComputedValue,
52    property_group = Forms,
53    computed_value_type = AsSpecified,
54    canonical_order = "per grammar",
55)]
56#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
57#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.input-security"))]
58#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
59pub enum InputSecurityStyleValue {}
60
61/// Represents the style value for `slider-orientation` as defined in [css-forms-1](https://drafts.csswg.org/css-forms-1/#slider-orientation).
62///
63/// The grammar is defined as:
64///
65/// ```text,ignore
66/// auto | left-to-right | right-to-left | top-to-bottom | bottom-to-top
67/// ```
68///
69/// https://drafts.csswg.org/css-forms-1/#slider-orientation
70#[syntax(" auto | left-to-right | right-to-left | top-to-bottom | bottom-to-top ")]
71#[derive(
72	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
73)]
74#[declaration_metadata(
75    initial = "auto",
76    applies_to = Elements,
77    animation_type = Discrete,
78    property_group = Forms,
79    computed_value_type = AsSpecified,
80    canonical_order = "per grammar",
81)]
82#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
83#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.slider-orientation"))]
84#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
85pub enum SliderOrientationStyleValue {}