1#![allow(warnings)]
5mod impls;
8use super::prelude::*;
9use impls::*;
10#[syntax(" none | <anchor-name># ")]
22#[derive(
23 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
24)]
25#[declaration_metadata(
26 initial = "none",
27 applies_to = Unknown,
28 animation_type = Discrete,
29 property_group = AnchorPosition,
30 computed_value_type = AsSpecified,
31 canonical_order = "per grammar",
32)]
33#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
34#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.anchor-name"))]
35#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
36#[derive(csskit_derives::NodeWithMetadata)]
37pub struct AnchorNameStyleValue<'a>;
38
39#[syntax(" none | all | <anchor-name># ")]
51#[derive(
52 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
53)]
54#[declaration_metadata(
55 initial = "none",
56 applies_to = Elements,
57 animation_type = Discrete,
58 property_group = AnchorPosition,
59 computed_value_type = AsSpecified,
60 canonical_order = "per grammar",
61)]
62#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
63#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.anchor-scope"))]
64#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
65#[derive(csskit_derives::NodeWithMetadata)]
66pub enum AnchorScopeStyleValue<'a> {}
67
68#[syntax(" normal | none | auto | <anchor-name> | match-parent ")]
80#[derive(
81 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
82)]
83#[declaration_metadata(
84 initial = "normal",
85 applies_to = AbsPos,
86 animation_type = Discrete,
87 property_group = AnchorPosition,
88 computed_value_type = AsSpecified,
89 canonical_order = "per grammar",
90 box_portion = Position,
91)]
92#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
93#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.position-anchor"))]
94#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
95#[derive(csskit_derives::NodeWithMetadata)]
96pub enum PositionAnchorStyleValue {}
97
98#[syntax(" none | <position-area> ")]
110#[derive(
111 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
112)]
113#[declaration_metadata(
114 initial = "none",
115 applies_to = Unknown,
116 animation_type = Discrete,
117 property_group = AnchorPosition,
118 computed_value_type = Unknown,
119 canonical_order = "per grammar",
120 box_portion = Position,
121)]
122#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
123#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.position-area"))]
124#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
125#[derive(csskit_derives::NodeWithMetadata)]
126pub struct PositionAreaStyleValue;
127
128#[syntax(" <'position-try-order'>? <'position-try-fallbacks'> ")]
140#[derive(
141 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
142)]
143#[declaration_metadata(
144 initial = "see individual properties",
145 inherits = Unknown,
146 applies_to = Unknown,
147 animation_type = Unknown,
148 percentages = Unknown,
149 longhands = PositionTryFallbacks|PositionTryOrder,
150 property_group = AnchorPosition,
151 computed_value_type = Unknown,
152 canonical_order = "per grammar",
153 box_portion = Position,
154)]
155#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
156#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.position-try"))]
157#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
158#[derive(csskit_derives::NodeWithMetadata)]
159pub struct PositionTryStyleValue<'a>;
160
161#[syntax(" none | [ [<dashed-ident> || <try-tactic>] | <position-area> ]# ")]
173#[derive(
174 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
175)]
176#[declaration_metadata(
177 initial = "none",
178 applies_to = AbsPos,
179 animation_type = Discrete,
180 shorthand_group = PositionTry,
181 property_group = AnchorPosition,
182 computed_value_type = AsSpecified,
183 canonical_order = "per grammar",
184 box_portion = Position,
185)]
186#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
187#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.position-try-fallbacks"))]
188#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
189#[derive(csskit_derives::NodeWithMetadata)]
190pub struct PositionTryFallbacksStyleValue<'a>;
191
192#[syntax(" normal | <try-size> ")]
204#[derive(
205 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
206)]
207#[declaration_metadata(
208 initial = "normal",
209 applies_to = AbsPos,
210 animation_type = Discrete,
211 shorthand_group = PositionTry,
212 property_group = AnchorPosition,
213 computed_value_type = AsSpecified,
214 canonical_order = "per grammar",
215 box_portion = Position,
216)]
217#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
218#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.position-try-order"))]
219#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
220#[derive(csskit_derives::NodeWithMetadata)]
221pub struct PositionTryOrderStyleValue;
222
223#[syntax(" always | [ anchor-valid || anchor-visible || no-overflow ] ")]
235#[derive(
236 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
237)]
238#[declaration_metadata(
239 initial = "anchor-visible",
240 applies_to = AbsPos,
241 animation_type = Discrete,
242 property_group = AnchorPosition,
243 computed_value_type = AsSpecified,
244 canonical_order = "per grammar",
245 box_portion = Position,
246)]
247#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
248#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.position-visibility"))]
249#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
250#[derive(csskit_derives::NodeWithMetadata)]
251pub enum PositionVisibilityStyleValue {}