css_ast 0.0.22

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/53d6722b123cba9c9ac37e4ae1a78eb144ecd25f
// Do not edit this file directly.
#![allow(warnings)]
//! https://drafts.csswg.org/css-contain-4/

mod impls;
use super::prelude::*;
use impls::*;
/// Represents the style value for `contain` as defined in [css-contain-4](https://drafts.csswg.org/css-contain-4/#contain).
///
/// The contain CSS property sets limits to the scope of styles, layout, and paint rendering for speed and efficiency. The none keyword value disables containment, strict is equivalent to contain: size layout style paint, and content is equivalent to contain: layout style paint.
///
/// The grammar is defined as:
///
/// ```text,ignore
/// none | strict | content | [ [size | inline-size] || layout || style || paint ]
/// ```
///
/// https://drafts.csswg.org/css-contain-4/#contain
#[syntax(" none | strict | content | [ [size | inline-size] || layout || style || paint ] ")]
#[derive(
	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
)]
#[declaration_metadata(
    initial = "none",
    applies_to = Unknown,
    property_group = Contain,
    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.contain"))]
#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
#[derive(csskit_derives::NodeWithMetadata)]
pub enum ContainStyleValue {}

/// Represents the style value for `content-visibility` as defined in [css-contain-4](https://drafts.csswg.org/css-contain-4/#content-visibility).
///
/// The content-visibility CSS property delays rendering an element, including layout and painting, until it is needed.
///
/// The grammar is defined as:
///
/// ```text,ignore
/// visible | auto | hidden
/// ```
///
/// https://drafts.csswg.org/css-contain-4/#content-visibility
#[syntax(" visible | auto | hidden ")]
#[derive(
	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
)]
#[declaration_metadata(
    initial = "visible",
    applies_to = Unknown,
    animation_type = Unknown,
    property_group = Contain,
    computed_value_type = AsSpecified,
    canonical_order = "per grammar",
)]
#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.content-visibility"))]
#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
#[derive(csskit_derives::NodeWithMetadata)]
pub enum ContentVisibilityStyleValue {}