css_ast/values/forms/
mod.rs1#![allow(warnings)]
2mod impls;
6use impls::*;
7
8#[syntax(" fixed | content ")]
20#[derive(Parse, Peek, ToSpan, ToCursors, StyleValue, Visitable, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
21#[style_value(
22 initial = "fixed",
23 applies_to = "elements with default preferred size",
24 inherited = "no",
25 percentages = "n/a",
26 canonical_order = "per grammar",
27 animation_type = "discrete"
28)]
29#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
30#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.field-sizing"))]
31#[visit]
32pub enum FieldSizingStyleValue {}
33
34#[syntax(" auto | left-to-right | right-to-left | top-to-bottom | bottom-to-top ")]
44#[derive(Parse, Peek, ToSpan, ToCursors, StyleValue, Visitable, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
45#[style_value(
46 initial = "auto",
47 applies_to = "all elements",
48 inherited = "no",
49 percentages = "n/a",
50 canonical_order = "per grammar",
51 animation_type = "discrete"
52)]
53#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
54#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.slider-orientation"))]
55#[visit]
56pub enum SliderOrientationStyleValue {}
57
58#[syntax(" auto | none ")]
68#[derive(Parse, Peek, ToSpan, ToCursors, StyleValue, Visitable, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
69#[style_value(
70 initial = "auto",
71 applies_to = "sensitive text inputs",
72 inherited = "no",
73 percentages = "n/a",
74 canonical_order = "per grammar",
75 animation_type = "by computed value type"
76)]
77#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
78#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.input-security"))]
79#[visit]
80pub enum InputSecurityStyleValue {}