css_ast/values/gcpm/
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-gcpm-4/
6
7mod impls;
8use super::prelude::*;
9use impls::*;
10// /// Represents the style value for `copy-into` as defined in [css-gcpm-4](https://drafts.csswg.org/css-gcpm-4/#copy-into).
11// ///
12// /// The grammar is defined as:
13// ///
14// /// ```text,ignore
15// /// none |  [ [ <custom-ident>  <content-level>] [,  <custom-ident>  <content-level>]*  ]?
16// /// ```
17// ///
18// /// https://drafts.csswg.org/css-gcpm-4/#copy-into
19// #[syntax(
20//     " none |  [ [ <custom-ident>  <content-level>] [,  <custom-ident>  <content-level>]*  ]? "
21// )]
22// #[derive(
23//     Parse,
24//     Peek,
25//     ToSpan,
26//     ToCursors,
27//     DeclarationMetadata,
28//     SemanticEq,
29//     Debug,
30//     Clone,
31//     PartialEq,
32//     Eq,
33//     PartialOrd,
34//     Ord,
35//     Hash,
36// )]
37// #[declaration_metadata(
38//     initial = "none",
39//     applies_to = Unknown,
40//     animation_type = Discrete,
41//     property_group = Gcpm,
42//     computed_value_type = AsSpecified,
43//     canonical_order = "per grammar",
44// )]
45// #[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
46// #[cfg_attr(
47//     feature = "css_feature_data",
48//     derive(ToCSSFeature),
49//     css_feature("css.properties.copy-into")
50// )]
51// #[cfg_attr(feature = "visitable", derive(Visitable), visit)]
52// #[derive(csskit_derives::NodeWithMetadata)]
53// pub struct CopyIntoStyleValue<'a>;
54
55/// Represents the style value for `footnote-display` as defined in [css-gcpm-4](https://drafts.csswg.org/css-gcpm-4/#footnote-display).
56///
57/// The grammar is defined as:
58///
59/// ```text,ignore
60/// block | inline | compact
61/// ```
62///
63/// https://drafts.csswg.org/css-gcpm-4/#footnote-display
64#[syntax(" block | inline | compact ")]
65#[derive(
66	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
67)]
68#[declaration_metadata(
69    initial = "block",
70    applies_to = Unknown,
71    animation_type = Discrete,
72    property_group = Gcpm,
73    computed_value_type = AsSpecified,
74    canonical_order = "per grammar",
75)]
76#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
77#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.footnote-display"))]
78#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
79#[derive(csskit_derives::NodeWithMetadata)]
80pub enum FootnoteDisplayStyleValue {}
81
82/// Represents the style value for `footnote-policy` as defined in [css-gcpm-4](https://drafts.csswg.org/css-gcpm-4/#footnote-policy).
83///
84/// The grammar is defined as:
85///
86/// ```text,ignore
87/// auto | line | block
88/// ```
89///
90/// https://drafts.csswg.org/css-gcpm-4/#footnote-policy
91#[syntax(" auto | line | block ")]
92#[derive(
93	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
94)]
95#[declaration_metadata(
96    initial = "auto",
97    applies_to = Unknown,
98    animation_type = Discrete,
99    property_group = Gcpm,
100    computed_value_type = AsSpecified,
101    canonical_order = "per grammar",
102)]
103#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
104#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.footnote-policy"))]
105#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
106#[derive(csskit_derives::NodeWithMetadata)]
107pub enum FootnotePolicyStyleValue {}
108
109/// Represents the style value for `running` as defined in [css-gcpm-4](https://drafts.csswg.org/css-gcpm-4/#running).
110///
111/// The grammar is defined as:
112///
113/// ```text,ignore
114/// <custom-ident>
115/// ```
116///
117/// https://drafts.csswg.org/css-gcpm-4/#running
118#[syntax(" <custom-ident> ")]
119#[derive(
120	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
121)]
122#[declaration_metadata(
123    initial = "none",
124    applies_to = Unknown,
125    animation_type = Discrete,
126    property_group = Gcpm,
127    computed_value_type = AsSpecified,
128    canonical_order = "per grammar",
129)]
130#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
131#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.running"))]
132#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
133#[derive(csskit_derives::NodeWithMetadata)]
134pub struct RunningStyleValue;
135
136// /// Represents the style value for `string-set` as defined in [css-gcpm-4](https://drafts.csswg.org/css-gcpm-4/#string-set).
137// ///
138// /// The grammar is defined as:
139// ///
140// /// ```text,ignore
141// /// [ <custom-ident> <content-list> ]# | none
142// /// ```
143// ///
144// /// https://drafts.csswg.org/css-gcpm-4/#string-set
145// #[syntax(" [ <custom-ident> <content-list> ]# | none ")]
146// #[derive(
147//     Parse,
148//     Peek,
149//     ToSpan,
150//     ToCursors,
151//     DeclarationMetadata,
152//     SemanticEq,
153//     Debug,
154//     Clone,
155//     PartialEq,
156//     Eq,
157//     PartialOrd,
158//     Ord,
159//     Hash,
160// )]
161// #[declaration_metadata(
162//     initial = "none",
163//     applies_to = Elements,
164//     animation_type = Discrete,
165//     property_group = Gcpm,
166//     computed_value_type = AsSpecified,
167//     canonical_order = "per grammar",
168// )]
169// #[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
170// #[cfg_attr(
171//     feature = "css_feature_data",
172//     derive(ToCSSFeature),
173//     css_feature("css.properties.string-set")
174// )]
175// #[cfg_attr(feature = "visitable", derive(Visitable), visit)]
176// #[derive(csskit_derives::NodeWithMetadata)]
177// pub struct StringSetStyleValue<'a>;