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