css_ast/values/conditional/
mod.rs

1#![allow(warnings)]
2//! https://drafts.csswg.org/css-conditional-5/
3
4mod impls;
5use super::prelude::*;
6use impls::*;
7// /// Represents the style value for `container` as defined in [css-conditional-5](https://drafts.csswg.org/css-conditional-5/#container).
8// ///
9// /// Container size queries with the @container at-rule apply styles to an element based on the dimensions of its container.
10// ///
11// /// The grammar is defined as:
12// ///
13// /// ```text,ignore
14// /// <'container-name'> [ / <'container-type'> ]?
15// /// ```
16// ///
17// /// https://drafts.csswg.org/css-conditional-5/#container
18// #[syntax(" <'container-name'> [ / <'container-type'> ]? ")]
19// #[derive(
20//     Parse,
21//     Peek,
22//     ToSpan,
23//     ToCursors,
24//     DeclarationMetadata,
25//     SemanticEq,
26//     Debug,
27//     Clone,
28//     PartialEq,
29//     Eq,
30//     PartialOrd,
31//     Ord,
32//     Hash,
33// )]
34// #[declaration_metadata(
35//     initial = "see individual properties",
36//     inherits = Unknown,
37//     applies_to = Unknown,
38//     percentages = Unknown,
39//     animation_type = Unknown,
40//     property_group = Conditional,
41//     computed_value_type = Unknown,
42//     canonical_order = "per grammar",
43// )]
44// #[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
45// #[cfg_attr(
46//     feature = "css_feature_data",
47//     derive(ToCSSFeature),
48//     css_feature("css.properties.container")
49// )]
50// #[cfg_attr(feature = "visitable", derive(Visitable), visit)]
51// pub struct ContainerStyleValue;
52
53/// Represents the style value for `container-name` as defined in [css-conditional-5](https://drafts.csswg.org/css-conditional-5/#container-name).
54///
55/// Container size queries with the @container at-rule apply styles to an element based on the dimensions of its container.
56///
57/// The grammar is defined as:
58///
59/// ```text,ignore
60/// none | <custom-ident>+
61/// ```
62///
63/// https://drafts.csswg.org/css-conditional-5/#container-name
64#[syntax(" none | <custom-ident>+ ")]
65#[derive(
66	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
67)]
68#[declaration_metadata(
69    initial = "none",
70    applies_to = Elements,
71    property_group = Conditional,
72    computed_value_type = Unknown,
73    canonical_order = "per grammar",
74)]
75#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
76#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.container-name"))]
77#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
78pub struct ContainerNameStyleValue<'a>;
79
80// /// Represents the style value for `container-type` as defined in [css-conditional-5](https://drafts.csswg.org/css-conditional-5/#container-type).
81// ///
82// /// Container size queries with the @container at-rule apply styles to an element based on the dimensions of its container.
83// ///
84// /// The grammar is defined as:
85// ///
86// /// ```text,ignore
87// /// normal | [ [ size | inline-size ] || scroll-state ]
88// /// ```
89// ///
90// /// https://drafts.csswg.org/css-conditional-5/#container-type
91// #[syntax(" normal | [ [ size | inline-size ] || scroll-state ] ")]
92// #[derive(
93//     Parse,
94//     Peek,
95//     ToSpan,
96//     ToCursors,
97//     DeclarationMetadata,
98//     SemanticEq,
99//     Debug,
100//     Clone,
101//     PartialEq,
102//     Eq,
103//     PartialOrd,
104//     Ord,
105//     Hash,
106// )]
107// #[declaration_metadata(
108//     initial = "normal",
109//     applies_to = Elements,
110//     property_group = Conditional,
111//     computed_value_type = Unknown,
112//     canonical_order = "per grammar",
113// )]
114// #[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
115// #[cfg_attr(
116//     feature = "css_feature_data",
117//     derive(ToCSSFeature),
118//     css_feature("css.properties.container-type")
119// )]
120// #[cfg_attr(feature = "visitable", derive(Visitable), visit)]
121// pub enum ContainerTypeStyleValue {}