css_ast/values/exclusions/
mod.rs

1#![allow(warnings)]
2//! CSS Exclusions Module Level 1
3//! https://drafts.csswg.org/css-exclusions-1/
4
5mod impls;
6use impls::*;
7
8/// Represents the style value for `wrap-flow` as defined in [css-exclusions-1](https://drafts.csswg.org/css-exclusions-1/#wrap-flow).
9///
10/// The grammar is defined as:
11///
12/// ```text,ignore
13/// auto | both | start | end | minimum | maximum | clear
14/// ```
15///
16// https://drafts.csswg.org/css-exclusions-1/#wrap-flow
17#[syntax(" auto | both | start | end | minimum | maximum | clear ")]
18#[derive(Parse, Peek, ToSpan, ToCursors, StyleValue, Visitable, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
19#[style_value(
20	initial = "auto",
21	applies_to = "block-level elements.",
22	inherited = "no",
23	percentages = "n/a",
24	canonical_order = "per grammar",
25	animation_type = "not animatable"
26)]
27#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
28#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.wrap-flow"))]
29#[visit]
30pub enum WrapFlowStyleValue {}
31
32/// Represents the style value for `wrap-through` as defined in [css-exclusions-1](https://drafts.csswg.org/css-exclusions-1/#wrap-through).
33///
34/// The grammar is defined as:
35///
36/// ```text,ignore
37/// wrap | none
38/// ```
39///
40// https://drafts.csswg.org/css-exclusions-1/#wrap-through
41#[syntax(" wrap | none ")]
42#[derive(Parse, Peek, ToSpan, ToCursors, StyleValue, Visitable, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
43#[style_value(
44	initial = "wrap",
45	applies_to = "block-level elements",
46	inherited = "no",
47	percentages = "n/a",
48	canonical_order = "per grammar",
49	animation_type = "not animatable"
50)]
51#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
52#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.wrap-through"))]
53#[visit]
54pub enum WrapThroughStyleValue {}