css_ast/values/tables/
mod.rs

1#![allow(warnings)]
2//! https://drafts.csswg.org/css-tables-3/
3
4mod impls;
5use super::prelude::*;
6use impls::*;
7/// Represents the style value for `border-collapse` as defined in [css-tables-3](https://drafts.csswg.org/css-tables-3/#border-collapse).
8///
9/// The <table> HTML element, with several related elements, represents tabular data in rows and columns of cells.
10///
11/// The grammar is defined as:
12///
13/// ```text,ignore
14/// separate | collapse
15/// ```
16///
17/// https://drafts.csswg.org/css-tables-3/#border-collapse
18#[syntax(" separate | collapse ")]
19#[derive(
20	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
21)]
22#[declaration_metadata(
23    initial = "separate",
24    inherits,
25    applies_to = Unknown,
26    animation_type = Discrete,
27    property_group = Tables,
28    computed_value_type = Unknown,
29    canonical_order = "per grammar",
30    box_portion = Border,
31)]
32#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
33#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.border-collapse"))]
34#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
35pub enum BorderCollapseStyleValue {}
36
37/// Represents the style value for `border-spacing` as defined in [css-tables-3](https://drafts.csswg.org/css-tables-3/#border-spacing).
38///
39/// The <table> HTML element, with several related elements, represents tabular data in rows and columns of cells.
40///
41/// The grammar is defined as:
42///
43/// ```text,ignore
44/// <length>{1,2}
45/// ```
46///
47/// https://drafts.csswg.org/css-tables-3/#border-spacing
48#[syntax(" <length>{1,2} ")]
49#[derive(
50	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
51)]
52#[declaration_metadata(
53    initial = "0px 0px",
54    inherits,
55    applies_to = Unknown,
56    animation_type = ByComputedValue,
57    property_group = Tables,
58    computed_value_type = TwoAbsoluteLengths,
59    canonical_order = "per grammar",
60    box_portion = Border,
61)]
62#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
63#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.border-spacing"))]
64#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
65pub struct BorderSpacingStyleValue;
66
67/// Represents the style value for `caption-side` as defined in [css-tables-3](https://drafts.csswg.org/css-tables-3/#caption-side).
68///
69/// The <table> HTML element, with several related elements, represents tabular data in rows and columns of cells.
70///
71/// The grammar is defined as:
72///
73/// ```text,ignore
74/// top | bottom
75/// ```
76///
77/// https://drafts.csswg.org/css-tables-3/#caption-side
78#[syntax(" top | bottom ")]
79#[derive(
80	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
81)]
82#[declaration_metadata(
83    initial = "top",
84    inherits,
85    applies_to = Unknown,
86    animation_type = Discrete,
87    property_group = Tables,
88    computed_value_type = Unknown,
89    canonical_order = "per grammar",
90)]
91#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
92#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.caption-side"))]
93#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
94pub enum CaptionSideStyleValue {}
95
96/// Represents the style value for `empty-cells` as defined in [css-tables-3](https://drafts.csswg.org/css-tables-3/#empty-cells).
97///
98/// The <table> HTML element, with several related elements, represents tabular data in rows and columns of cells.
99///
100/// The grammar is defined as:
101///
102/// ```text,ignore
103/// show | hide
104/// ```
105///
106/// https://drafts.csswg.org/css-tables-3/#empty-cells
107#[syntax(" show | hide ")]
108#[derive(
109	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
110)]
111#[declaration_metadata(
112    initial = "show",
113    inherits,
114    applies_to = Unknown,
115    animation_type = Discrete,
116    property_group = Tables,
117    computed_value_type = Unknown,
118    canonical_order = "per grammar",
119)]
120#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
121#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.empty-cells"))]
122#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
123pub enum EmptyCellsStyleValue {}
124
125/// Represents the style value for `table-layout` as defined in [css-tables-3](https://drafts.csswg.org/css-tables-3/#table-layout).
126///
127/// The <table> HTML element, with several related elements, represents tabular data in rows and columns of cells.
128///
129/// The grammar is defined as:
130///
131/// ```text,ignore
132/// auto | fixed
133/// ```
134///
135/// https://drafts.csswg.org/css-tables-3/#table-layout
136#[syntax(" auto | fixed ")]
137#[derive(
138	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
139)]
140#[declaration_metadata(
141    initial = "auto",
142    applies_to = Unknown,
143    animation_type = Discrete,
144    property_group = Tables,
145    computed_value_type = Unknown,
146    canonical_order = "per grammar",
147)]
148#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
149#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.table-layout"))]
150#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
151pub enum TableLayoutStyleValue {}