Skip to main content

css_ast/values/content/
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-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(" normal | none | [ <content-replacement> | <content-list> ] [/ [ <string> | <counter> | <attr()> ]+ ]? ")]
103#[derive(
104	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
105)]
106#[declaration_metadata(
107    initial = "normal",
108    applies_to = Unknown,
109    animation_type = Discrete,
110    property_group = Content,
111    computed_value_type = Unknown,
112    canonical_order = "per grammar",
113)]
114#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
115#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.content"))]
116#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
117#[derive(csskit_derives::NodeWithMetadata)]
118pub enum ContentStyleValue<'a> {}
119
120/// Represents the style value for `quotes` as defined in [css-content-3](https://drafts.csswg.org/css-content-3/#quotes).
121///
122/// The quotes CSS property sets the quotation marks inserted via the content CSS property or <q> element.
123///
124/// The grammar is defined as:
125///
126/// ```text,ignore
127/// auto | none | match-parent | [ <string> <string> ]+
128/// ```
129///
130/// https://drafts.csswg.org/css-content-3/#quotes
131#[syntax(" auto | none | match-parent | [ <string> <string> ]+ ")]
132#[derive(
133	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
134)]
135#[declaration_metadata(
136    initial = "auto",
137    inherits,
138    applies_to = Elements,
139    animation_type = Discrete,
140    property_group = Content,
141    computed_value_type = Unknown,
142    canonical_order = "per grammar",
143)]
144#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
145#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.quotes"))]
146#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
147#[derive(csskit_derives::NodeWithMetadata)]
148pub enum QuotesStyleValue<'a> {}