css_ast/values/scrollbars/
mod.rs

1#![allow(warnings)]
2//! https://drafts.csswg.org/css-scrollbars-1/
3
4mod impls;
5use super::prelude::*;
6use impls::*;
7/// Represents the style value for `scrollbar-color` as defined in [css-scrollbars-1](https://drafts.csswg.org/css-scrollbars-1/#scrollbar-color).
8///
9/// The scrollbar-color CSS property sets the color of the scrollbar track and thumb.
10///
11/// The grammar is defined as:
12///
13/// ```text,ignore
14/// auto | <color>{2}
15/// ```
16///
17/// https://drafts.csswg.org/css-scrollbars-1/#scrollbar-color
18#[syntax(" auto | <color>{2} ")]
19#[derive(
20	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
21)]
22#[declaration_metadata(
23    initial = "auto",
24    inherits,
25    applies_to = Unknown,
26    animation_type = ByComputedValue,
27    property_group = Scrollbars,
28    computed_value_type = Unknown,
29    canonical_order = "per grammar",
30)]
31#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
32#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.scrollbar-color"))]
33#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
34pub struct ScrollbarColorStyleValue;
35
36/// Represents the style value for `scrollbar-width` as defined in [css-scrollbars-1](https://drafts.csswg.org/css-scrollbars-1/#scrollbar-width).
37///
38/// The scrollbar-width CSS property sets the width of the scrollbar.
39///
40/// The grammar is defined as:
41///
42/// ```text,ignore
43/// auto | thin | none
44/// ```
45///
46/// https://drafts.csswg.org/css-scrollbars-1/#scrollbar-width
47#[syntax(" auto | thin | none ")]
48#[derive(
49	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
50)]
51#[declaration_metadata(
52    initial = "auto",
53    applies_to = Unknown,
54    animation_type = Discrete,
55    property_group = Scrollbars,
56    computed_value_type = Unknown,
57    canonical_order = "per grammar",
58)]
59#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
60#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.scrollbar-width"))]
61#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
62pub enum ScrollbarWidthStyleValue {}