css_ast/values/line_grid/
mod.rs

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