Skip to main content

css_ast/values/regions/
mod.rs

1// AUTO-GENERATED from w3c/csswg-drafts
2// Commit: https://github.com/w3c/csswg-drafts/commit/e8f0279ce0beff5d70e59fa4165a668e1527fff6
3// Do not edit this file directly.
4#![allow(warnings)]
5//! https://drafts.csswg.org/css-regions-1/
6
7mod impls;
8use super::prelude::*;
9use impls::*;
10/// Represents the style value for `flow-from` as defined in [css-regions-1](https://drafts.csswg.org/css-regions-1/#flow-from).
11///
12/// The grammar is defined as:
13///
14/// ```text,ignore
15/// <custom-ident> | none
16/// ```
17///
18/// https://drafts.csswg.org/css-regions-1/#flow-from
19#[syntax(" <custom-ident> | none ")]
20#[derive(
21	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
22)]
23#[declaration_metadata(
24    initial = "none",
25    applies_to = Unknown,
26    property_group = Regions,
27    computed_value_type = AsSpecified,
28    canonical_order = "per grammar",
29)]
30#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
31#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.flow-from"))]
32#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
33#[derive(csskit_derives::NodeWithMetadata)]
34pub struct FlowFromStyleValue;
35
36/// Represents the style value for `flow-into` as defined in [css-regions-1](https://drafts.csswg.org/css-regions-1/#flow-into).
37///
38/// The grammar is defined as:
39///
40/// ```text,ignore
41/// none | <custom-ident> [element | content]?
42/// ```
43///
44/// https://drafts.csswg.org/css-regions-1/#flow-into
45#[syntax(" none | <custom-ident> [element | content]? ")]
46#[derive(
47	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
48)]
49#[declaration_metadata(
50    initial = "none",
51    applies_to = Unknown,
52    property_group = Regions,
53    computed_value_type = AsSpecified,
54    canonical_order = "per grammar",
55)]
56#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
57#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.flow-into"))]
58#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
59#[derive(csskit_derives::NodeWithMetadata)]
60pub enum FlowIntoStyleValue {}
61
62/// Represents the style value for `region-fragment` as defined in [css-regions-1](https://drafts.csswg.org/css-regions-1/#region-fragment).
63///
64/// The grammar is defined as:
65///
66/// ```text,ignore
67/// auto | break
68/// ```
69///
70/// https://drafts.csswg.org/css-regions-1/#region-fragment
71#[syntax(" auto | break ")]
72#[derive(
73	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
74)]
75#[declaration_metadata(
76    initial = "auto",
77    applies_to = Unknown,
78    animation_type = Discrete,
79    property_group = Regions,
80    computed_value_type = Unknown,
81    canonical_order = "per grammar",
82)]
83#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
84#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.region-fragment"))]
85#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
86#[derive(csskit_derives::NodeWithMetadata)]
87pub enum RegionFragmentStyleValue {}