1#![allow(warnings)]
2mod impls;
5use super::prelude::*;
6use impls::*;
7#[syntax(" slice | clone ")]
19#[derive(
20 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
21)]
22#[declaration_metadata(
23 initial = "slice",
24 applies_to = Elements,
25 animation_type = Discrete,
26 property_group = Break,
27 computed_value_type = Unknown,
28 canonical_order = "per grammar",
29)]
30#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
31#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.box-decoration-break"))]
32#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
33pub enum BoxDecorationBreakStyleValue {}
34
35#[syntax(
47 " auto | avoid | always | all | avoid-page | page | left | right | recto | verso | avoid-column | column | avoid-region | region "
48)]
49#[derive(
50 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
51)]
52#[declaration_metadata(
53 initial = "auto",
54 applies_to = Unknown,
55 animation_type = Discrete,
56 property_group = Break,
57 computed_value_type = Unknown,
58 canonical_order = "per grammar",
59)]
60#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
61#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.break-after"))]
62#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
63pub enum BreakAfterStyleValue {}
64
65#[syntax(
77 " auto | avoid | always | all | avoid-page | page | left | right | recto | verso | avoid-column | column | avoid-region | region "
78)]
79#[derive(
80 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
81)]
82#[declaration_metadata(
83 initial = "auto",
84 applies_to = Unknown,
85 animation_type = Discrete,
86 property_group = Break,
87 computed_value_type = Unknown,
88 canonical_order = "per grammar",
89)]
90#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
91#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.break-before"))]
92#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
93pub enum BreakBeforeStyleValue {}
94
95#[syntax(" auto | avoid | avoid-page | avoid-column | avoid-region ")]
107#[derive(
108 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
109)]
110#[declaration_metadata(
111 initial = "auto",
112 applies_to = Unknown,
113 animation_type = Discrete,
114 property_group = Break,
115 computed_value_type = Unknown,
116 canonical_order = "per grammar",
117)]
118#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
119#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.break-inside"))]
120#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
121pub enum BreakInsideStyleValue {}
122
123#[syntax(" auto | keep | discard ")]
133#[derive(
134 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
135)]
136#[declaration_metadata(
137 initial = "auto",
138 applies_to = Elements,
139 animation_type = Discrete,
140 property_group = Break,
141 computed_value_type = Unknown,
142 canonical_order = "per grammar",
143 box_portion = Margin,
144)]
145#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
146#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.margin-break"))]
147#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
148pub enum MarginBreakStyleValue {}
149
150#[syntax(" <integer [1,∞]> ")]
162#[derive(
163 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
164)]
165#[declaration_metadata(
166 initial = "2",
167 inherits,
168 applies_to = Unknown,
169 animation_type = ByComputedValue,
170 property_group = Break,
171 computed_value_type = Unknown,
172 canonical_order = "per grammar",
173)]
174#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
175#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.orphans"))]
176#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
177pub struct OrphansStyleValue;
178
179#[syntax(" <integer [1,∞]> ")]
191#[derive(
192 Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
193)]
194#[declaration_metadata(
195 initial = "2",
196 inherits,
197 applies_to = Unknown,
198 animation_type = ByComputedValue,
199 property_group = Break,
200 computed_value_type = Unknown,
201 canonical_order = "per grammar",
202)]
203#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
204#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.widows"))]
205#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
206pub struct WidowsStyleValue;