css_ast/values/gcpm/
mod.rs

1#![allow(warnings)]
2//! CSS Generated Content for Paged Media Module Level 4
3//! https://drafts.csswg.org/css-gcpm-4/
4
5mod impls;
6use impls::*;
7
8// /// Represents the style value for `string-set` as defined in [css-gcpm-4](https://drafts.csswg.org/css-gcpm-4/#string-set).
9// ///
10// /// The grammar is defined as:
11// ///
12// /// ```text,ignore
13// /// [ <custom-ident> <content-list> ]# | none
14// /// ```
15// ///
16// // https://drafts.csswg.org/css-gcpm-4/#string-set
17// #[syntax(" [ <custom-ident> <content-list> ]# | none ")]
18// #[derive(Parse, Peek, ToSpan, ToCursors, StyleValue, Visitable, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
19// #[style_value(
20// 	initial = "none",
21//   applies_to = "all elements, but not pseudo-elements",
22// 	inherited = "no",
23// 	percentages = "n/a",
24// 	canonical_order = "per grammar",
25// 	animation_type = "discrete",
26// )]
27// #[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
28// #[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.string-set"))]
29// #[visit]
30// pub enum StringSetStyleValue<'a> {}
31
32/// Represents the style value for `running` as defined in [css-gcpm-4](https://drafts.csswg.org/css-gcpm-4/#running).
33///
34/// The grammar is defined as:
35///
36/// ```text,ignore
37/// <custom-ident>
38/// ```
39///
40// https://drafts.csswg.org/css-gcpm-4/#running
41#[syntax(" <custom-ident> ")]
42#[derive(Parse, Peek, ToSpan, ToCursors, StyleValue, Visitable, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
43#[style_value(
44	initial = "none",
45	applies_to = "elements",
46	inherited = "no",
47	percentages = "n/a",
48	canonical_order = "per grammar",
49	animation_type = "discrete"
50)]
51#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
52#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.running"))]
53#[visit]
54pub struct RunningStyleValue;
55
56/// Represents the style value for `footnote-display` as defined in [css-gcpm-4](https://drafts.csswg.org/css-gcpm-4/#footnote-display).
57///
58/// The grammar is defined as:
59///
60/// ```text,ignore
61/// block | inline | compact
62/// ```
63///
64// https://drafts.csswg.org/css-gcpm-4/#footnote-display
65#[syntax(" block | inline | compact ")]
66#[derive(Parse, Peek, ToSpan, ToCursors, StyleValue, Visitable, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
67#[style_value(
68	initial = "block",
69	applies_to = "elements",
70	inherited = "no",
71	percentages = "n/a",
72	canonical_order = "per grammar",
73	animation_type = "discrete"
74)]
75#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
76#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.footnote-display"))]
77#[visit]
78pub enum FootnoteDisplayStyleValue {}
79
80/// Represents the style value for `footnote-policy` as defined in [css-gcpm-4](https://drafts.csswg.org/css-gcpm-4/#footnote-policy).
81///
82/// The grammar is defined as:
83///
84/// ```text,ignore
85/// auto | line | block
86/// ```
87///
88// https://drafts.csswg.org/css-gcpm-4/#footnote-policy
89#[syntax(" auto | line | block ")]
90#[derive(Parse, Peek, ToSpan, ToCursors, StyleValue, Visitable, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
91#[style_value(
92	initial = "auto",
93	applies_to = "elements",
94	inherited = "no",
95	percentages = "n/a",
96	canonical_order = "per grammar",
97	animation_type = "discrete"
98)]
99#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
100#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.footnote-policy"))]
101#[visit]
102pub enum FootnotePolicyStyleValue {}
103
104// /// Represents the style value for `copy-into` as defined in [css-gcpm-4](https://drafts.csswg.org/css-gcpm-4/#copy-into).
105// ///
106// /// The grammar is defined as:
107// ///
108// /// ```text,ignore
109// /// none |  [ [ <custom-ident>  <content-level>] [,  <custom-ident>  <content-level>]*  ]?
110// /// ```
111// ///
112// // https://drafts.csswg.org/css-gcpm-4/#copy-into
113// #[syntax(" none |  [ [ <custom-ident>  <content-level>] [,  <custom-ident>  <content-level>]*  ]? ")]
114// #[derive(Parse, Peek, ToSpan, ToCursors, StyleValue, Visitable, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
115// #[style_value(
116// 	initial = "none",
117//   applies_to = "all elements and pseudo-elements, but not ::first-line or ::first-letter.",
118// 	inherited = "no",
119// 	percentages = "n/a",
120// 	canonical_order = "per grammar",
121// 	animation_type = "discrete",
122// )]
123// #[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
124// #[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.copy-into"))]
125// #[visit]
126// pub enum CopyIntoStyleValue {}