css_ast/values/content/
mod.rs

1#![allow(warnings)]
2//! https://drafts.csswg.org/css-content-3/
3
4mod impls;
5use super::prelude::*;
6use impls::*;
7/// Represents the style value for `bookmark-label` as defined in [css-content-3](https://drafts.csswg.org/css-content-3/#bookmark-label).
8///
9/// The grammar is defined as:
10///
11/// ```text,ignore
12/// <content-list>
13/// ```
14///
15/// https://drafts.csswg.org/css-content-3/#bookmark-label
16#[syntax(" <content-list> ")]
17#[derive(
18	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
19)]
20#[declaration_metadata(
21    initial = "content(text)",
22    applies_to = Elements,
23    animation_type = Discrete,
24    property_group = Content,
25    computed_value_type = AsSpecified,
26    canonical_order = "per grammar",
27)]
28#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
29#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.bookmark-label"))]
30#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
31pub struct BookmarkLabelStyleValue<'a>;
32
33/// Represents the style value for `bookmark-level` as defined in [css-content-3](https://drafts.csswg.org/css-content-3/#bookmark-level).
34///
35/// The grammar is defined as:
36///
37/// ```text,ignore
38/// none | <integer [1,∞]>
39/// ```
40///
41/// https://drafts.csswg.org/css-content-3/#bookmark-level
42#[syntax(" none | <integer [1,∞]> ")]
43#[derive(
44	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
45)]
46#[declaration_metadata(
47    initial = "none",
48    applies_to = Elements,
49    animation_type = ByComputedValue,
50    property_group = Content,
51    computed_value_type = Unknown,
52    canonical_order = "per grammar",
53)]
54#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
55#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.bookmark-level"))]
56#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
57pub struct BookmarkLevelStyleValue;
58
59/// Represents the style value for `bookmark-state` as defined in [css-content-3](https://drafts.csswg.org/css-content-3/#bookmark-state).
60///
61/// The grammar is defined as:
62///
63/// ```text,ignore
64/// open | closed
65/// ```
66///
67/// https://drafts.csswg.org/css-content-3/#bookmark-state
68#[syntax(" open | closed ")]
69#[derive(
70	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
71)]
72#[declaration_metadata(
73    initial = "open",
74    applies_to = Block,
75    animation_type = Discrete,
76    property_group = Content,
77    computed_value_type = Unknown,
78    canonical_order = "per grammar",
79)]
80#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
81#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.bookmark-state"))]
82#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
83pub enum BookmarkStateStyleValue {}
84
85// /// Represents the style value for `content` as defined in [css-content-3](https://drafts.csswg.org/css-content-3/#content).
86// ///
87// /// The content CSS property sets the content inside of an element or pseudo-element, replacing the current value. It's often used with the ::before and ::after pseudo-elements to generate cosmetic content.
88// ///
89// /// The grammar is defined as:
90// ///
91// /// ```text,ignore
92// /// normal | none | [ <content-replacement> | <content-list> ] [/ [ <string> | <counter> | <attr()> ]+ ]?
93// /// ```
94// ///
95// /// https://drafts.csswg.org/css-content-3/#content
96// #[syntax(
97//     " normal | none | [ <content-replacement> | <content-list> ] [/ [ <string> | <counter> | <attr()> ]+ ]? "
98// )]
99// #[derive(
100//     Parse,
101//     Peek,
102//     ToSpan,
103//     ToCursors,
104//     DeclarationMetadata,
105//     SemanticEq,
106//     Debug,
107//     Clone,
108//     PartialEq,
109//     Eq,
110//     PartialOrd,
111//     Ord,
112//     Hash,
113// )]
114// #[declaration_metadata(
115//     initial = "normal",
116//     applies_to = Unknown,
117//     animation_type = Discrete,
118//     property_group = Content,
119//     computed_value_type = Unknown,
120//     canonical_order = "per grammar",
121// )]
122// #[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
123// #[cfg_attr(
124//     feature = "css_feature_data",
125//     derive(ToCSSFeature),
126//     css_feature("css.properties.content")
127// )]
128// #[cfg_attr(feature = "visitable", derive(Visitable), visit)]
129// pub enum ContentStyleValue<'a> {}
130
131// /// Represents the style value for `quotes` as defined in [css-content-3](https://drafts.csswg.org/css-content-3/#quotes).
132// ///
133// /// The quotes CSS property sets the quotation marks inserted via the content CSS property or <q> element.
134// ///
135// /// The grammar is defined as:
136// ///
137// /// ```text,ignore
138// /// auto | none | match-parent | [ <string> <string> ]+
139// /// ```
140// ///
141// /// https://drafts.csswg.org/css-content-3/#quotes
142// #[syntax(" auto | none | match-parent | [ <string> <string> ]+ ")]
143// #[derive(
144//     Parse,
145//     Peek,
146//     ToSpan,
147//     ToCursors,
148//     DeclarationMetadata,
149//     SemanticEq,
150//     Debug,
151//     Clone,
152//     PartialEq,
153//     Eq,
154//     PartialOrd,
155//     Ord,
156//     Hash,
157// )]
158// #[declaration_metadata(
159//     initial = "auto",
160//     inherits,
161//     applies_to = Elements,
162//     animation_type = Discrete,
163//     property_group = Content,
164//     computed_value_type = Unknown,
165//     canonical_order = "per grammar",
166// )]
167// #[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
168// #[cfg_attr(
169//     feature = "css_feature_data",
170//     derive(ToCSSFeature),
171//     css_feature("css.properties.quotes")
172// )]
173// #[cfg_attr(feature = "visitable", derive(Visitable), visit)]
174// pub enum QuotesStyleValue<'a> {}