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/pointer-animations-1/

mod impls;
use super::prelude::*;
use impls::*;
/// Represents the style value for `animation-range-center` as defined in [pointer-animations-1](https://drafts.csswg.org/pointer-animations-1/#animation-range-center).
///
/// The grammar is defined as:
///
/// ```text,ignore
/// [ normal | [ <length-percentage> | <timeline-range-center-subject> <length-percentage>? ] ]#
/// ```
///
/// https://drafts.csswg.org/pointer-animations-1/#animation-range-center
#[syntax(" [ normal | [ <length-percentage> | <timeline-range-center-subject> <length-percentage>? ] ]# ")]
#[derive(
	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
)]
#[declaration_metadata(
    initial = "normal",
    applies_to = Elements,
    percentages = Unknown,
    property_group = PointerAnimations,
    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.animation-range-center"))]
#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
#[derive(csskit_derives::NodeWithMetadata)]
pub struct AnimationRangeCenterStyleValue<'a>;

/// Represents the style value for `pointer-timeline` as defined in [pointer-animations-1](https://drafts.csswg.org/pointer-animations-1/#pointer-timeline).
///
/// The grammar is defined as:
///
/// ```text,ignore
/// [ <'pointer-timeline-name'> <'pointer-timeline-axis'>? ]#
/// ```
///
/// https://drafts.csswg.org/pointer-animations-1/#pointer-timeline
#[syntax(" [ <'pointer-timeline-name'> <'pointer-timeline-axis'>? ]# ")]
#[derive(
	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
)]
#[declaration_metadata(
    initial = "see individual properties",
    inherits = Unknown,
    applies_to = Elements,
    animation_type = Unknown,
    percentages = Unknown,
    property_group = PointerAnimations,
    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.pointer-timeline"))]
#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
#[derive(csskit_derives::NodeWithMetadata)]
pub struct PointerTimelineStyleValue<'a>;

/// Represents the style value for `pointer-timeline-axis` as defined in [pointer-animations-1](https://drafts.csswg.org/pointer-animations-1/#pointer-timeline-axis).
///
/// The grammar is defined as:
///
/// ```text,ignore
/// [ block | inline | x | y ]#
/// ```
///
/// https://drafts.csswg.org/pointer-animations-1/#pointer-timeline-axis
#[syntax(" [ block | inline | x | y ]# ")]
#[derive(
	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
)]
#[declaration_metadata(
    initial = "block",
    applies_to = Elements,
    property_group = PointerAnimations,
    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.pointer-timeline-axis"))]
#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
#[derive(csskit_derives::NodeWithMetadata)]
pub struct PointerTimelineAxisStyleValue<'a>;

/// Represents the style value for `pointer-timeline-name` as defined in [pointer-animations-1](https://drafts.csswg.org/pointer-animations-1/#pointer-timeline-name).
///
/// The grammar is defined as:
///
/// ```text,ignore
/// [ none | <dashed-ident> ]#
/// ```
///
/// https://drafts.csswg.org/pointer-animations-1/#pointer-timeline-name
#[syntax(" [ none | <dashed-ident> ]# ")]
#[derive(
	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
)]
#[declaration_metadata(
    initial = "none",
    applies_to = Elements,
    property_group = PointerAnimations,
    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.pointer-timeline-name"))]
#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
#[derive(csskit_derives::NodeWithMetadata)]
pub struct PointerTimelineNameStyleValue<'a>;