1#![allow(warnings)]
5mod impls;
8use super::prelude::*;
9use impls::*;
10#[syntax(
22 " [ <'offset-position'>? [ <'offset-path'> [ <'offset-distance'> || <'offset-rotate'> ]? ]? ]! [ / <'offset-anchor'> ]? "
23)]
24#[derive(
25 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
26)]
27#[declaration_metadata(
28 initial = "see individual properties",
29 inherits = Unknown,
30 applies_to = Unknown,
31 animation_type = Unknown,
32 percentages = Unknown,
33 longhands = OffsetAnchor|OffsetDistance|OffsetPath|OffsetPosition|OffsetRotate,
34 property_group = Motion,
35 computed_value_type = Unknown,
36 canonical_order = "per grammar",
37)]
38#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
39#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.offset"))]
40#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
41#[derive(csskit_derives::NodeWithMetadata)]
42pub enum OffsetStyleValue<'a> {}
43
44#[syntax(" auto | <position> ")]
56#[derive(
57 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
58)]
59#[declaration_metadata(
60 initial = "auto",
61 applies_to = Unknown,
62 animation_type = ByComputedValue,
63 percentages = ReferenceBox,
64 shorthand_group = Offset,
65 property_group = Motion,
66 computed_value_type = Unknown,
67 canonical_order = "per grammar",
68)]
69#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
70#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.offset-anchor"))]
71#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
72#[derive(csskit_derives::NodeWithMetadata)]
73pub struct OffsetAnchorStyleValue<'a>;
74
75#[syntax(" <length-percentage> ")]
87#[derive(
88 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
89)]
90#[declaration_metadata(
91 initial = "0",
92 applies_to = Unknown,
93 animation_type = ByComputedValue,
94 percentages = Unknown,
95 shorthand_group = Offset,
96 property_group = Motion,
97 computed_value_type = Unknown,
98 canonical_order = "per grammar",
99)]
100#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
101#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.offset-distance"))]
102#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
103#[derive(csskit_derives::NodeWithMetadata)]
104pub struct OffsetDistanceStyleValue<'a>;
105
106#[syntax(" none | <offset-path> || <coord-box> ")]
118#[derive(
119 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
120)]
121#[declaration_metadata(
122 initial = "none",
123 applies_to = Unknown,
124 animation_type = ByComputedValue,
125 shorthand_group = Offset,
126 property_group = Motion,
127 computed_value_type = AsSpecified,
128 canonical_order = "per grammar",
129)]
130#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
131#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.offset-path"))]
132#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
133#[derive(csskit_derives::NodeWithMetadata)]
134pub struct OffsetPathStyleValue<'a>;
135
136#[syntax(" normal | auto | <position> ")]
148#[derive(
149 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
150)]
151#[declaration_metadata(
152 initial = "normal",
153 applies_to = Unknown,
154 animation_type = ByComputedValue,
155 percentages = Unknown,
156 shorthand_group = Offset,
157 property_group = Motion,
158 computed_value_type = Unknown,
159 canonical_order = "per grammar",
160)]
161#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
162#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.offset-position"))]
163#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
164#[derive(csskit_derives::NodeWithMetadata)]
165pub enum OffsetPositionStyleValue<'a> {}
166
167#[syntax(" [ auto | reverse ] || <angle> ")]
179#[derive(
180 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
181)]
182#[declaration_metadata(
183 initial = "auto",
184 applies_to = Unknown,
185 animation_type = ByComputedValue,
186 shorthand_group = Offset,
187 property_group = Motion,
188 computed_value_type = Unknown,
189 canonical_order = "per grammar",
190)]
191#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
192#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.offset-rotate"))]
193#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
194#[derive(csskit_derives::NodeWithMetadata)]
195pub enum OffsetRotateStyleValue<'a> {}