css_ast 0.0.24

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/0ccb3ca9a5df1ee965e1ca55095f03413b68a493
// Do not edit this file directly.
#![allow(warnings)]
//! https://drafts.csswg.org/compositing-2/

mod impls;
use super::prelude::*;
use impls::*;
/// Represents the style value for `background-blend-mode` as defined in [compositing-2](https://drafts.csswg.org/compositing-2/#background-blend-mode).
///
/// The background-blend-mode CSS property blends an element's background image and background color using blend modes like multiply, difference, or color.
///
/// The grammar is defined as:
///
/// ```text,ignore
/// <'mix-blend-mode'>#
/// ```
///
/// https://drafts.csswg.org/compositing-2/#background-blend-mode
#[syntax(" <'mix-blend-mode'># ")]
#[derive(
	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
)]
#[declaration_metadata(
    initial = "normal",
    applies_to = Unknown,
    animation_type = Discrete,
    property_group = Compositing,
    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.background-blend-mode"))]
#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
#[derive(csskit_derives::NodeWithMetadata)]
pub struct BackgroundBlendModeStyleValue<'a>;

/// Represents the style value for `isolation` as defined in [compositing-2](https://drafts.csswg.org/compositing-2/#isolation).
///
/// The isolation CSS property creates a new stacking context, which impacts z-index ordering and blend modes.
///
/// The grammar is defined as:
///
/// ```text,ignore
/// <isolation-mode>
/// ```
///
/// https://drafts.csswg.org/compositing-2/#isolation
#[syntax(" <isolation-mode> ")]
#[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 = Compositing,
    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.isolation"))]
#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
#[derive(csskit_derives::NodeWithMetadata)]
pub struct IsolationStyleValue;

/// Represents the style value for `mix-blend-mode` as defined in [compositing-2](https://drafts.csswg.org/compositing-2/#mix-blend-mode).
///
/// The mix-blend-mode CSS property blends an element's content with its background or parent elements using blend modes like multiply, difference, or color.
///
/// The grammar is defined as:
///
/// ```text,ignore
/// <blend-mode> | plus-lighter
/// ```
///
/// https://drafts.csswg.org/compositing-2/#mix-blend-mode
#[syntax(" <blend-mode> | plus-lighter ")]
#[derive(
	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
)]
#[declaration_metadata(
    initial = "normal",
    applies_to = Unknown,
    animation_type = Discrete,
    property_group = Compositing,
    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.mix-blend-mode"))]
#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
#[derive(csskit_derives::NodeWithMetadata)]
pub enum MixBlendModeStyleValue {}