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