css_ast/values/regions/
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-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,
48//     Peek,
49//     ToSpan,
50//     ToCursors,
51//     DeclarationMetadata,
52//     SemanticEq,
53//     Debug,
54//     Clone,
55//     PartialEq,
56//     Eq,
57//     PartialOrd,
58//     Ord,
59//     Hash,
60// )]
61// #[declaration_metadata(
62//     initial = "none",
63//     applies_to = Unknown,
64//     property_group = Regions,
65//     computed_value_type = AsSpecified,
66//     canonical_order = "per grammar",
67// )]
68// #[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
69// #[cfg_attr(
70//     feature = "css_feature_data",
71//     derive(ToCSSFeature),
72//     css_feature("css.properties.flow-into")
73// )]
74// #[cfg_attr(feature = "visitable", derive(Visitable), visit)]
75// #[derive(csskit_derives::NodeWithMetadata)]
76// pub struct FlowIntoStyleValue;
77
78/// Represents the style value for `region-fragment` as defined in [css-regions-1](https://drafts.csswg.org/css-regions-1/#region-fragment).
79///
80/// The grammar is defined as:
81///
82/// ```text,ignore
83/// auto | break
84/// ```
85///
86/// https://drafts.csswg.org/css-regions-1/#region-fragment
87#[syntax(" auto | break ")]
88#[derive(
89	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
90)]
91#[declaration_metadata(
92    initial = "auto",
93    applies_to = Unknown,
94    animation_type = Discrete,
95    property_group = Regions,
96    computed_value_type = Unknown,
97    canonical_order = "per grammar",
98)]
99#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
100#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.region-fragment"))]
101#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
102#[derive(csskit_derives::NodeWithMetadata)]
103pub enum RegionFragmentStyleValue {}