Skip to main content

css_ast/values/gcpm/
mod.rs

1// AUTO-GENERATED from w3c/csswg-drafts
2// Commit: https://github.com/w3c/csswg-drafts/commit/ddbceaa3cee88f134d557c3051c26fcb5554a535
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(" none |  [ [ <custom-ident>  <content-level>] [,  <custom-ident>  <content-level>]*  ]? ")]
20#[derive(
21	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
22)]
23#[declaration_metadata(
24    initial = "none",
25    applies_to = Unknown,
26    animation_type = Discrete,
27    property_group = Gcpm,
28    computed_value_type = AsSpecified,
29    canonical_order = "per grammar",
30)]
31#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
32#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.copy-into"))]
33#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
34#[derive(csskit_derives::NodeWithMetadata)]
35pub struct CopyIntoStyleValue<'a>;
36
37/// Represents the style value for `footnote-display` as defined in [css-gcpm-4](https://drafts.csswg.org/css-gcpm-4/#footnote-display).
38///
39/// The grammar is defined as:
40///
41/// ```text,ignore
42/// block | inline | compact
43/// ```
44///
45/// https://drafts.csswg.org/css-gcpm-4/#footnote-display
46#[syntax(" block | inline | compact ")]
47#[derive(
48	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
49)]
50#[declaration_metadata(
51    initial = "block",
52    applies_to = Unknown,
53    animation_type = Discrete,
54    property_group = Gcpm,
55    computed_value_type = AsSpecified,
56    canonical_order = "per grammar",
57)]
58#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
59#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.footnote-display"))]
60#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
61#[derive(csskit_derives::NodeWithMetadata)]
62pub enum FootnoteDisplayStyleValue {}
63
64/// Represents the style value for `footnote-policy` as defined in [css-gcpm-4](https://drafts.csswg.org/css-gcpm-4/#footnote-policy).
65///
66/// The grammar is defined as:
67///
68/// ```text,ignore
69/// auto | line | block
70/// ```
71///
72/// https://drafts.csswg.org/css-gcpm-4/#footnote-policy
73#[syntax(" auto | line | block ")]
74#[derive(
75	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
76)]
77#[declaration_metadata(
78    initial = "auto",
79    applies_to = Unknown,
80    animation_type = Discrete,
81    property_group = Gcpm,
82    computed_value_type = AsSpecified,
83    canonical_order = "per grammar",
84)]
85#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
86#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.footnote-policy"))]
87#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
88#[derive(csskit_derives::NodeWithMetadata)]
89pub enum FootnotePolicyStyleValue {}
90
91/// Represents the style value for `running` as defined in [css-gcpm-4](https://drafts.csswg.org/css-gcpm-4/#running).
92///
93/// The grammar is defined as:
94///
95/// ```text,ignore
96/// <custom-ident>
97/// ```
98///
99/// https://drafts.csswg.org/css-gcpm-4/#running
100#[syntax(" <custom-ident> ")]
101#[derive(
102	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
103)]
104#[declaration_metadata(
105    initial = "none",
106    applies_to = Unknown,
107    animation_type = Discrete,
108    property_group = Gcpm,
109    computed_value_type = AsSpecified,
110    canonical_order = "per grammar",
111)]
112#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
113#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.running"))]
114#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
115#[derive(csskit_derives::NodeWithMetadata)]
116pub struct RunningStyleValue;
117
118/// Represents the style value for `string-set` as defined in [css-gcpm-4](https://drafts.csswg.org/css-gcpm-4/#string-set).
119///
120/// The grammar is defined as:
121///
122/// ```text,ignore
123/// [ <custom-ident> <content-list> ]# | none
124/// ```
125///
126/// https://drafts.csswg.org/css-gcpm-4/#string-set
127#[syntax(" [ <custom-ident> <content-list> ]# | none ")]
128#[derive(
129	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
130)]
131#[declaration_metadata(
132    initial = "none",
133    applies_to = Elements,
134    animation_type = Discrete,
135    property_group = Gcpm,
136    computed_value_type = AsSpecified,
137    canonical_order = "per grammar",
138)]
139#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
140#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.string-set"))]
141#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
142#[derive(csskit_derives::NodeWithMetadata)]
143pub struct StringSetStyleValue<'a>;