1#![allow(warnings)]
2mod impls;
6use impls::*;
7
8#[syntax(" none | <length [0,∞]> ")]
18#[derive(Parse, Peek, ToSpan, ToCursors, StyleValue, Visitable, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
19#[style_value(
20 initial = "none",
21 applies_to = "block-level boxes",
22 inherited = "no",
23 percentages = "n/a",
24 canonical_order = "per grammar",
25 animation_type = "by computed value type"
26)]
27#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
28#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.block-step-size"))]
29#[visit]
30pub struct BlockStepSizeStyleValue;
31
32#[syntax(" margin-box | padding-box | content-box ")]
42#[derive(Parse, Peek, ToSpan, ToCursors, StyleValue, Visitable, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
43#[style_value(
44 initial = "margin-box",
45 applies_to = "block-level boxes",
46 inherited = "no",
47 percentages = "n/a",
48 canonical_order = "per grammar",
49 animation_type = "discrete"
50)]
51#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
52#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.block-step-insert"))]
53#[visit]
54pub enum BlockStepInsertStyleValue {}
55
56#[syntax(" auto | center | start | end ")]
66#[derive(Parse, Peek, ToSpan, ToCursors, StyleValue, Visitable, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
67#[style_value(
68 initial = "auto",
69 applies_to = "block-level boxes",
70 inherited = "no",
71 percentages = "n/a",
72 canonical_order = "per grammar",
73 animation_type = "discrete"
74)]
75#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
76#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.block-step-align"))]
77#[visit]
78pub enum BlockStepAlignStyleValue {}
79
80#[syntax(" up | down | nearest ")]
90#[derive(Parse, Peek, ToSpan, ToCursors, StyleValue, Visitable, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
91#[style_value(
92 initial = "up",
93 applies_to = "block-level boxes",
94 inherited = "no",
95 percentages = "n/a",
96 canonical_order = "per grammar",
97 animation_type = "discrete"
98)]
99#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
100#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.block-step-round"))]
101#[visit]
102pub enum BlockStepRoundStyleValue {}
103
104#[syntax(" <'block-step-size'> || <'block-step-insert'> || <'block-step-align'> || <'block-step-round'> ")]
114#[derive(Parse, Peek, ToSpan, ToCursors, StyleValue, Visitable, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
115#[style_value(
116 initial = "see individual properties",
117 applies_to = "block-level boxes",
118 inherited = "no",
119 percentages = "n/a",
120 canonical_order = "per grammar",
121 animation_type = "see individual properties"
122)]
123#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
124#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.block-step"))]
125#[visit]
126pub struct BlockStepStyleValue;
127
128#[syntax(" <length [0,∞]> ")]
138#[derive(Parse, Peek, ToSpan, ToCursors, StyleValue, Visitable, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
139#[style_value(
140 initial = "0",
141 applies_to = "block containers",
142 inherited = "yes",
143 percentages = "n/a",
144 canonical_order = "per grammar",
145 animation_type = "by computed value type"
146)]
147#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
148#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.line-height-step"))]
149#[visit]
150pub struct LineHeightStepStyleValue;