css_ast 0.0.25

CSS Abstract Syntax Trees with visitable nodes and style value types.
Documentation
// AUTO-GENERATED from w3c/csswg-drafts
// Commit: https://github.com/w3c/csswg-drafts/commit/4a2d33ef63e58de3f090c0efc69a038c5c4c1527
// Do not edit this file directly.
#![allow(warnings)]
//! https://drafts.csswg.org/css-tables-3/

mod impls;
use super::prelude::*;
use impls::*;
/// Represents the style value for `border-collapse` as defined in [css-tables-3](https://drafts.csswg.org/css-tables-3/#border-collapse).
///
/// The <table> HTML element, with several related elements, represents tabular data in rows and columns of cells.
///
/// The grammar is defined as:
///
/// ```text,ignore
/// separate | collapse
/// ```
///
/// https://drafts.csswg.org/css-tables-3/#border-collapse
#[syntax(" separate | collapse ")]
#[derive(
	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
)]
#[declaration_metadata(
    initial = "separate",
    inherits,
    applies_to = Unknown,
    animation_type = Discrete,
    property_group = Tables,
    computed_value_type = Unknown,
    canonical_order = "per grammar",
    box_portion = Border,
)]
#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.border-collapse"))]
#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
#[derive(csskit_derives::NodeWithMetadata)]
pub enum BorderCollapseStyleValue {}

/// Represents the style value for `border-spacing` as defined in [css-tables-3](https://drafts.csswg.org/css-tables-3/#border-spacing).
///
/// The <table> HTML element, with several related elements, represents tabular data in rows and columns of cells.
///
/// The grammar is defined as:
///
/// ```text,ignore
/// <length [0,∞]>{1,2}
/// ```
///
/// https://drafts.csswg.org/css-tables-3/#border-spacing
#[syntax(" <length [0,∞]>{1,2} ")]
#[derive(
	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
)]
#[declaration_metadata(
    initial = "0px 0px",
    inherits,
    applies_to = Unknown,
    animation_type = ByComputedValue,
    property_group = Tables,
    computed_value_type = TwoAbsoluteLengths,
    canonical_order = "per grammar",
    box_portion = Border,
)]
#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.border-spacing"))]
#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
#[derive(csskit_derives::NodeWithMetadata)]
pub struct BorderSpacingStyleValue;

/// Represents the style value for `caption-side` as defined in [css-tables-3](https://drafts.csswg.org/css-tables-3/#caption-side).
///
/// The <table> HTML element, with several related elements, represents tabular data in rows and columns of cells.
///
/// The grammar is defined as:
///
/// ```text,ignore
/// top | bottom
/// ```
///
/// https://drafts.csswg.org/css-tables-3/#caption-side
#[syntax(" top | bottom ")]
#[derive(
	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
)]
#[declaration_metadata(
    initial = "top",
    inherits,
    applies_to = Unknown,
    animation_type = Discrete,
    property_group = Tables,
    computed_value_type = Unknown,
    canonical_order = "per grammar",
)]
#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.caption-side"))]
#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
#[derive(csskit_derives::NodeWithMetadata)]
pub enum CaptionSideStyleValue {}

/// Represents the style value for `empty-cells` as defined in [css-tables-3](https://drafts.csswg.org/css-tables-3/#empty-cells).
///
/// The <table> HTML element, with several related elements, represents tabular data in rows and columns of cells.
///
/// The grammar is defined as:
///
/// ```text,ignore
/// show | hide
/// ```
///
/// https://drafts.csswg.org/css-tables-3/#empty-cells
#[syntax(" show | hide ")]
#[derive(
	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
)]
#[declaration_metadata(
    initial = "show",
    inherits,
    applies_to = Unknown,
    animation_type = Discrete,
    property_group = Tables,
    computed_value_type = Unknown,
    canonical_order = "per grammar",
)]
#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.empty-cells"))]
#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
#[derive(csskit_derives::NodeWithMetadata)]
pub enum EmptyCellsStyleValue {}

/// Represents the style value for `table-layout` as defined in [css-tables-3](https://drafts.csswg.org/css-tables-3/#table-layout).
///
/// The <table> HTML element, with several related elements, represents tabular data in rows and columns of cells.
///
/// The grammar is defined as:
///
/// ```text,ignore
/// auto | fixed
/// ```
///
/// https://drafts.csswg.org/css-tables-3/#table-layout
#[syntax(" auto | fixed ")]
#[derive(
	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
)]
#[declaration_metadata(
    initial = "auto",
    applies_to = Unknown,
    animation_type = Discrete,
    property_group = Tables,
    computed_value_type = Unknown,
    canonical_order = "per grammar",
)]
#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.table-layout"))]
#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
#[derive(csskit_derives::NodeWithMetadata)]
pub enum TableLayoutStyleValue {}