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