css_ast 0.0.23

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/3317e61fe2d6744744f69ee6f43994f6f9696455
// Do not edit this file directly.
#![allow(warnings)]
//! https://drafts.csswg.org/css-conditional-5/

mod impls;
use super::prelude::*;
use impls::*;
/// Represents the style value for `container` as defined in [css-conditional-5](https://drafts.csswg.org/css-conditional-5/#container).
///
/// Container size queries with the @container at-rule apply styles to an element based on the dimensions of its container.
///
/// The grammar is defined as:
///
/// ```text,ignore
/// <'container-name'> [ / <'container-type'> ]?
/// ```
///
/// https://drafts.csswg.org/css-conditional-5/#container
#[syntax(" <'container-name'> [ / <'container-type'> ]? ")]
#[derive(
	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
)]
#[declaration_metadata(
    initial = "see individual properties",
    inherits = Unknown,
    applies_to = Unknown,
    animation_type = Unknown,
    percentages = Unknown,
    longhands = ContainerName|ContainerType,
    property_group = Conditional,
    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.container"))]
#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
#[derive(csskit_derives::NodeWithMetadata)]
pub struct ContainerStyleValue<'a>;

/// Represents the style value for `container-name` as defined in [css-conditional-5](https://drafts.csswg.org/css-conditional-5/#container-name).
///
/// Container size queries with the @container at-rule apply styles to an element based on the dimensions of its container.
///
/// The grammar is defined as:
///
/// ```text,ignore
/// none | <custom-ident>+
/// ```
///
/// https://drafts.csswg.org/css-conditional-5/#container-name
#[syntax(" none | <custom-ident>+ ")]
#[derive(
	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
)]
#[declaration_metadata(
    initial = "none",
    applies_to = Elements,
    shorthand_group = Container,
    property_group = Conditional,
    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.container-name"))]
#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
#[derive(csskit_derives::NodeWithMetadata)]
pub struct ContainerNameStyleValue<'a>;

/// Represents the style value for `container-type` as defined in [css-conditional-5](https://drafts.csswg.org/css-conditional-5/#container-type).
///
/// Container size queries with the @container at-rule apply styles to an element based on the dimensions of its container.
///
/// The grammar is defined as:
///
/// ```text,ignore
/// normal | [ [ size | inline-size ] || scroll-state ]
/// ```
///
/// https://drafts.csswg.org/css-conditional-5/#container-type
#[syntax(" normal | [ [ size | inline-size ] || scroll-state ] ")]
#[derive(
	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
)]
#[declaration_metadata(
    initial = "normal",
    applies_to = Elements,
    shorthand_group = Container,
    property_group = Conditional,
    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.container-type"))]
#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
#[derive(csskit_derives::NodeWithMetadata)]
pub enum ContainerTypeStyleValue {}