css_ast/values/view_transitions/
mod.rs

1// AUTO-GENERATED from w3c/csswg-drafts
2// Commit: https://github.com/w3c/csswg-drafts/commit/7e27ad7484307dfdbe9d0e18ad19d02859389688
3// Do not edit this file directly.
4#![allow(warnings)]
5//! https://drafts.csswg.org/css-view-transitions-2/
6
7mod impls;
8use super::prelude::*;
9use impls::*;
10/// Represents the style value for `view-transition-class` as defined in [css-view-transitions-2](https://drafts.csswg.org/css-view-transitions-2/#view-transition-class).
11///
12/// The view-transition-class CSS property sets a name that can be used to apply styles to multiple named view transition pseudo-elements.
13///
14/// The grammar is defined as:
15///
16/// ```text,ignore
17/// none | <custom-ident>+
18/// ```
19///
20/// https://drafts.csswg.org/css-view-transitions-2/#view-transition-class
21#[syntax(" none | <custom-ident>+ ")]
22#[derive(
23	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
24)]
25#[declaration_metadata(
26    initial = "none",
27    applies_to = Elements,
28    animation_type = Discrete,
29    property_group = ViewTransitions,
30    computed_value_type = AsSpecified,
31    canonical_order = "per grammar",
32)]
33#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
34#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.view-transition-class"))]
35#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
36#[derive(csskit_derives::NodeWithMetadata)]
37pub struct ViewTransitionClassStyleValue<'a>;
38
39/// Represents the style value for `view-transition-group` as defined in [css-view-transitions-2](https://drafts.csswg.org/css-view-transitions-2/#view-transition-group).
40///
41/// The grammar is defined as:
42///
43/// ```text,ignore
44/// normal | contain | nearest | <custom-ident>
45/// ```
46///
47/// https://drafts.csswg.org/css-view-transitions-2/#view-transition-group
48#[syntax(" normal | contain | nearest | <custom-ident> ")]
49#[derive(
50	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
51)]
52#[declaration_metadata(
53    initial = "normal",
54    applies_to = Elements,
55    animation_type = Discrete,
56    property_group = ViewTransitions,
57    computed_value_type = AsSpecified,
58    canonical_order = "per grammar",
59)]
60#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
61#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.view-transition-group"))]
62#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
63#[derive(csskit_derives::NodeWithMetadata)]
64pub enum ViewTransitionGroupStyleValue {}
65
66/// Represents the style value for `view-transition-name` as defined in [css-view-transitions-2](https://drafts.csswg.org/css-view-transitions-2/#view-transition-name).
67///
68/// View transitions allow you to create animated visual transitions between different states of a document.
69///
70/// The grammar is defined as:
71///
72/// ```text,ignore
73/// none | <custom-ident>
74/// ```
75///
76/// https://drafts.csswg.org/css-view-transitions-2/#view-transition-name
77#[syntax(" none | <custom-ident> ")]
78#[derive(
79	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
80)]
81#[declaration_metadata(
82    initial = "none",
83    applies_to = Elements,
84    animation_type = Discrete,
85    property_group = ViewTransitions,
86    computed_value_type = AsSpecified,
87    canonical_order = "per grammar",
88)]
89#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
90#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.view-transition-name"))]
91#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
92#[derive(csskit_derives::NodeWithMetadata)]
93pub struct ViewTransitionNameStyleValue;