Skip to main content

css_ast/values/overscroll/
mod.rs

1// AUTO-GENERATED from w3c/csswg-drafts
2// Commit: https://github.com/w3c/csswg-drafts/commit/40527902c4d0840cdb7a808c8cd42302be1c3bc8
3// Do not edit this file directly.
4#![allow(warnings)]
5//! https://drafts.csswg.org/css-overscroll-2/
6
7mod impls;
8use super::prelude::*;
9use impls::*;
10/// Represents the style value for `overscroll-behavior` as defined in [css-overscroll-2](https://drafts.csswg.org/css-overscroll-2/#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 | chain ]{1,2}
18/// ```
19///
20/// https://drafts.csswg.org/css-overscroll-2/#overscroll-behavior
21#[syntax(" [ contain | none | auto | chain ]{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#[declaration_writes(repeat)]
35#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
36#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.overscroll-behavior"))]
37#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
38#[derive(csskit_derives::NodeWithMetadata)]
39pub struct OverscrollBehaviorStyleValue<'a>;
40
41/// Represents the style value for `overscroll-behavior-block` as defined in [css-overscroll-2](https://drafts.csswg.org/css-overscroll-2/#overscroll-behavior-block).
42///
43/// The overscroll-behavior CSS property disables default scrolling behaviors when the edges of a scrolling area are reached.
44///
45/// The grammar is defined as:
46///
47/// ```text,ignore
48/// contain | none | auto | chain
49/// ```
50///
51/// https://drafts.csswg.org/css-overscroll-2/#overscroll-behavior-block
52#[syntax(" contain | none | auto | chain ")]
53#[derive(
54	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
55)]
56#[declaration_metadata(
57    initial = "auto",
58    applies_to = Unknown,
59    animation_type = Discrete,
60    property_group = Overscroll,
61    computed_value_type = AsSpecified,
62    canonical_order = "per grammar",
63    logical_property_group = OverscrollBehavior,
64    box_side = BlockStart|BlockEnd,
65)]
66#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
67#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.overscroll-behavior-block"))]
68#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
69#[derive(csskit_derives::NodeWithMetadata)]
70pub enum OverscrollBehaviorBlockStyleValue<'a> {}
71
72/// Represents the style value for `overscroll-behavior-inline` as defined in [css-overscroll-2](https://drafts.csswg.org/css-overscroll-2/#overscroll-behavior-inline).
73///
74/// The overscroll-behavior CSS property disables default scrolling behaviors when the edges of a scrolling area are reached.
75///
76/// The grammar is defined as:
77///
78/// ```text,ignore
79/// contain | none | auto | chain
80/// ```
81///
82/// https://drafts.csswg.org/css-overscroll-2/#overscroll-behavior-inline
83#[syntax(" contain | none | auto | chain ")]
84#[derive(
85	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
86)]
87#[declaration_metadata(
88    initial = "auto",
89    applies_to = Unknown,
90    animation_type = Discrete,
91    property_group = Overscroll,
92    computed_value_type = AsSpecified,
93    canonical_order = "per grammar",
94    logical_property_group = OverscrollBehavior,
95    box_side = InlineStart|InlineEnd,
96)]
97#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
98#[cfg_attr(
99	feature = "css_feature_data",
100	derive(ToCSSFeature),
101	css_feature("css.properties.overscroll-behavior-inline")
102)]
103#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
104#[derive(csskit_derives::NodeWithMetadata)]
105pub enum OverscrollBehaviorInlineStyleValue<'a> {}
106
107/// Represents the style value for `overscroll-behavior-x` as defined in [css-overscroll-2](https://drafts.csswg.org/css-overscroll-2/#overscroll-behavior-x).
108///
109/// The overscroll-behavior CSS property disables default scrolling behaviors when the edges of a scrolling area are reached.
110///
111/// The grammar is defined as:
112///
113/// ```text,ignore
114/// contain | none | auto | chain
115/// ```
116///
117/// https://drafts.csswg.org/css-overscroll-2/#overscroll-behavior-x
118#[syntax(" contain | none | auto | chain ")]
119#[derive(
120	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
121)]
122#[declaration_metadata(
123    initial = "auto",
124    applies_to = Unknown,
125    animation_type = Discrete,
126    shorthands = OverscrollBehavior,
127    property_group = Overscroll,
128    computed_value_type = AsSpecified,
129    canonical_order = "per grammar",
130    logical_property_group = OverscrollBehavior,
131)]
132#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
133#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.overscroll-behavior-x"))]
134#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
135#[derive(csskit_derives::NodeWithMetadata)]
136pub enum OverscrollBehaviorXStyleValue<'a> {}
137
138/// Represents the style value for `overscroll-behavior-y` as defined in [css-overscroll-2](https://drafts.csswg.org/css-overscroll-2/#overscroll-behavior-y).
139///
140/// The overscroll-behavior CSS property disables default scrolling behaviors when the edges of a scrolling area are reached.
141///
142/// The grammar is defined as:
143///
144/// ```text,ignore
145/// contain | none | auto | chain
146/// ```
147///
148/// https://drafts.csswg.org/css-overscroll-2/#overscroll-behavior-y
149#[syntax(" contain | none | auto | chain ")]
150#[derive(
151	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
152)]
153#[declaration_metadata(
154    initial = "auto",
155    applies_to = Unknown,
156    animation_type = Discrete,
157    shorthands = OverscrollBehavior,
158    property_group = Overscroll,
159    computed_value_type = AsSpecified,
160    canonical_order = "per grammar",
161    logical_property_group = OverscrollBehavior,
162)]
163#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
164#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.overscroll-behavior-y"))]
165#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
166#[derive(csskit_derives::NodeWithMetadata)]
167pub enum OverscrollBehaviorYStyleValue<'a> {}
168
169/// Represents the style value for `overscroll-container-type` as defined in [css-overscroll-2](https://drafts.csswg.org/css-overscroll-2/#overscroll-container-type).
170///
171/// The grammar is defined as:
172///
173/// ```text,ignore
174/// auto | push | overlay | none
175/// ```
176///
177/// https://drafts.csswg.org/css-overscroll-2/#overscroll-container-type
178#[syntax(" auto | push | overlay | none ")]
179#[derive(
180	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
181)]
182#[declaration_metadata(
183    initial = "auto",
184    applies_to = Elements,
185    animation_type = Discrete,
186    property_group = Overscroll,
187    computed_value_type = Unknown,
188    canonical_order = "per grammar",
189)]
190#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
191#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.overscroll-container-type"))]
192#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
193#[derive(csskit_derives::NodeWithMetadata)]
194pub enum OverscrollContainerTypeStyleValue<'a> {}