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