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