css_ast/values/overscroll/
mod.rs

1#![allow(warnings)]
2//! https://drafts.csswg.org/css-overscroll-1/
3
4mod impls;
5use super::prelude::*;
6use impls::*;
7/// Represents the style value for `overscroll-behavior` as defined in [css-overscroll-1](https://drafts.csswg.org/css-overscroll-1/#overscroll-behavior).
8///
9/// The overscroll-behavior CSS property disables default scrolling behaviors when the edges of a scrolling area are reached.
10///
11/// The grammar is defined as:
12///
13/// ```text,ignore
14/// [ contain | none | auto ]{1,2}
15/// ```
16///
17/// https://drafts.csswg.org/css-overscroll-1/#overscroll-behavior
18#[syntax(" [ contain | none | auto ]{1,2} ")]
19#[derive(
20	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
21)]
22#[declaration_metadata(
23    initial = "auto auto",
24    applies_to = Unknown,
25    animation_type = Discrete,
26    property_group = Overscroll,
27    computed_value_type = Unknown,
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.overscroll-behavior"))]
32#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
33pub struct OverscrollBehaviorStyleValue;
34
35/// Represents the style value for `overscroll-behavior-block` as defined in [css-overscroll-1](https://drafts.csswg.org/css-overscroll-1/#overscroll-behavior-block).
36///
37/// The overscroll-behavior CSS property disables default scrolling behaviors when the edges of a scrolling area are reached.
38///
39/// The grammar is defined as:
40///
41/// ```text,ignore
42/// contain | none | auto
43/// ```
44///
45/// https://drafts.csswg.org/css-overscroll-1/#overscroll-behavior-block
46#[syntax(" contain | none | auto ")]
47#[derive(
48	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
49)]
50#[declaration_metadata(
51    initial = "auto",
52    applies_to = Unknown,
53    animation_type = Discrete,
54    property_group = Overscroll,
55    computed_value_type = AsSpecified,
56    canonical_order = "per grammar",
57    logical_property_group = OverscrollBehavior,
58    box_side = BlockStart|BlockEnd,
59)]
60#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
61#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.overscroll-behavior-block"))]
62#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
63pub enum OverscrollBehaviorBlockStyleValue {}
64
65/// Represents the style value for `overscroll-behavior-inline` as defined in [css-overscroll-1](https://drafts.csswg.org/css-overscroll-1/#overscroll-behavior-inline).
66///
67/// The overscroll-behavior CSS property disables default scrolling behaviors when the edges of a scrolling area are reached.
68///
69/// The grammar is defined as:
70///
71/// ```text,ignore
72/// contain | none | auto
73/// ```
74///
75/// https://drafts.csswg.org/css-overscroll-1/#overscroll-behavior-inline
76#[syntax(" contain | none | auto ")]
77#[derive(
78	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
79)]
80#[declaration_metadata(
81    initial = "auto",
82    applies_to = Unknown,
83    animation_type = Discrete,
84    property_group = Overscroll,
85    computed_value_type = AsSpecified,
86    canonical_order = "per grammar",
87    logical_property_group = OverscrollBehavior,
88    box_side = InlineStart|InlineEnd,
89)]
90#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
91#[cfg_attr(
92	feature = "css_feature_data",
93	derive(ToCSSFeature),
94	css_feature("css.properties.overscroll-behavior-inline")
95)]
96#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
97pub enum OverscrollBehaviorInlineStyleValue {}
98
99/// Represents the style value for `overscroll-behavior-x` as defined in [css-overscroll-1](https://drafts.csswg.org/css-overscroll-1/#overscroll-behavior-x).
100///
101/// The overscroll-behavior CSS property disables default scrolling behaviors when the edges of a scrolling area are reached.
102///
103/// The grammar is defined as:
104///
105/// ```text,ignore
106/// contain | none | auto
107/// ```
108///
109/// https://drafts.csswg.org/css-overscroll-1/#overscroll-behavior-x
110#[syntax(" contain | none | auto ")]
111#[derive(
112	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
113)]
114#[declaration_metadata(
115    initial = "auto",
116    applies_to = Unknown,
117    animation_type = Discrete,
118    property_group = Overscroll,
119    computed_value_type = AsSpecified,
120    canonical_order = "per grammar",
121    logical_property_group = OverscrollBehavior,
122)]
123#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
124#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.overscroll-behavior-x"))]
125#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
126pub enum OverscrollBehaviorXStyleValue {}
127
128/// Represents the style value for `overscroll-behavior-y` as defined in [css-overscroll-1](https://drafts.csswg.org/css-overscroll-1/#overscroll-behavior-y).
129///
130/// The overscroll-behavior CSS property disables default scrolling behaviors when the edges of a scrolling area are reached.
131///
132/// The grammar is defined as:
133///
134/// ```text,ignore
135/// contain | none | auto
136/// ```
137///
138/// https://drafts.csswg.org/css-overscroll-1/#overscroll-behavior-y
139#[syntax(" contain | none | auto ")]
140#[derive(
141	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
142)]
143#[declaration_metadata(
144    initial = "auto",
145    applies_to = Unknown,
146    animation_type = Discrete,
147    property_group = Overscroll,
148    computed_value_type = AsSpecified,
149    canonical_order = "per grammar",
150    logical_property_group = OverscrollBehavior,
151)]
152#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
153#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.overscroll-behavior-y"))]
154#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
155pub enum OverscrollBehaviorYStyleValue {}