css_ast/values/nav/
mod.rs

1#![allow(warnings)]
2//! https://drafts.csswg.org/css-nav-1/
3
4mod impls;
5use super::prelude::*;
6use impls::*;
7/// Represents the style value for `spatial-navigation-action` as defined in [css-nav-1](https://drafts.csswg.org/css-nav-1/#spatial-navigation-action).
8///
9/// The grammar is defined as:
10///
11/// ```text,ignore
12/// auto | focus | scroll
13/// ```
14///
15/// https://drafts.csswg.org/css-nav-1/#spatial-navigation-action
16#[syntax(" auto | focus | scroll ")]
17#[derive(
18	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
19)]
20#[declaration_metadata(
21    initial = "auto",
22    applies_to = Unknown,
23    animation_type = Discrete,
24    property_group = Nav,
25    computed_value_type = AsSpecified,
26    canonical_order = "per grammar",
27)]
28#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
29#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.spatial-navigation-action"))]
30#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
31pub enum SpatialNavigationActionStyleValue {}
32
33/// Represents the style value for `spatial-navigation-contain` as defined in [css-nav-1](https://drafts.csswg.org/css-nav-1/#spatial-navigation-contain).
34///
35/// The grammar is defined as:
36///
37/// ```text,ignore
38/// auto | contain
39/// ```
40///
41/// https://drafts.csswg.org/css-nav-1/#spatial-navigation-contain
42#[syntax(" auto | contain ")]
43#[derive(
44	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
45)]
46#[declaration_metadata(
47    initial = "auto",
48    applies_to = Elements,
49    animation_type = Discrete,
50    property_group = Nav,
51    computed_value_type = AsSpecified,
52    canonical_order = "per grammar",
53)]
54#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
55#[cfg_attr(
56	feature = "css_feature_data",
57	derive(ToCSSFeature),
58	css_feature("css.properties.spatial-navigation-contain")
59)]
60#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
61pub enum SpatialNavigationContainStyleValue {}
62
63/// Represents the style value for `spatial-navigation-function` as defined in [css-nav-1](https://drafts.csswg.org/css-nav-1/#spatial-navigation-function).
64///
65/// The grammar is defined as:
66///
67/// ```text,ignore
68/// normal | grid
69/// ```
70///
71/// https://drafts.csswg.org/css-nav-1/#spatial-navigation-function
72#[syntax(" normal | grid ")]
73#[derive(
74	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
75)]
76#[declaration_metadata(
77    initial = "normal",
78    applies_to = Unknown,
79    animation_type = Discrete,
80    property_group = Nav,
81    computed_value_type = AsSpecified,
82    canonical_order = "per grammar",
83)]
84#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
85#[cfg_attr(
86	feature = "css_feature_data",
87	derive(ToCSSFeature),
88	css_feature("css.properties.spatial-navigation-function")
89)]
90#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
91pub enum SpatialNavigationFunctionStyleValue {}