css_ast/values/tables/
mod.rs

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