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