css_ast/values/forms/
mod.rs

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