1#![allow(warnings)]
2mod impls;
6use impls::*;
7
8#[syntax(" auto | fixed ")]
20#[derive(Parse, Peek, ToSpan, ToCursors, StyleValue, Visitable, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
21#[style_value(
22 initial = "auto",
23 applies_to = "table grid boxes",
24 inherited = "no",
25 percentages = "n/a",
26 canonical_order = "per grammar",
27 animation_type = "discrete"
28)]
29#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
30#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.table-layout"))]
31#[visit]
32pub enum TableLayoutStyleValue {}
33
34#[syntax(" separate | collapse ")]
46#[derive(Parse, Peek, ToSpan, ToCursors, StyleValue, Visitable, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
47#[style_value(
48 initial = "separate",
49 applies_to = "table grid boxes",
50 inherited = "yes",
51 percentages = "n/a",
52 canonical_order = "per grammar",
53 animation_type = "discrete"
54)]
55#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
56#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.border-collapse"))]
57#[visit]
58pub enum BorderCollapseStyleValue {}
59
60#[syntax(" <length>{1,2} ")]
72#[derive(Parse, Peek, ToSpan, ToCursors, StyleValue, Visitable, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
73#[style_value(
74 initial = "0px 0px",
75 applies_to = "table grid boxes when border-collapse is separate",
76 inherited = "yes",
77 percentages = "n/a",
78 canonical_order = "per grammar",
79 animation_type = "by computed value"
80)]
81#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
82#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.border-spacing"))]
83#[visit]
84pub struct BorderSpacingStyleValue;
85
86#[syntax(" top | bottom ")]
98#[derive(Parse, Peek, ToSpan, ToCursors, StyleValue, Visitable, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
99#[style_value(
100 initial = "top",
101 applies_to = "table-caption boxes",
102 inherited = "yes",
103 percentages = "n/a",
104 canonical_order = "per grammar",
105 animation_type = "discrete"
106)]
107#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
108#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.caption-side"))]
109#[visit]
110pub enum CaptionSideStyleValue {}
111
112#[syntax(" show | hide ")]
124#[derive(Parse, Peek, ToSpan, ToCursors, StyleValue, Visitable, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
125#[style_value(
126 initial = "show",
127 applies_to = "table-cell boxes",
128 inherited = "yes",
129 percentages = "n/a",
130 canonical_order = "per grammar",
131 animation_type = "discrete"
132)]
133#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
134#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.empty-cells"))]
135#[visit]
136pub enum EmptyCellsStyleValue {}