css_ast/values/cascade/
mod.rs

1#![allow(warnings)]
2//! CSS Cascading and Inheritance Level 5
3//! https://drafts.csswg.org/css-cascade-6/
4
5mod impls;
6use impls::*;
7
8/// Represents the style value for `all` as defined in [css-cascade-6](https://drafts.csswg.org/css-cascade-6/#all).
9///
10/// The all CSS property is a shorthand for all CSS properties, except for direction and unicode-bidi. It accepts only the keywords for explicit defaulting (such as initial and inherit), since they are the only values supported on all CSS properties.
11///
12/// The grammar is defined as:
13///
14/// ```text,ignore
15/// initial | inherit | unset | revert | revert-layer
16/// ```
17///
18// https://drafts.csswg.org/css-cascade-6/#all
19#[syntax(" initial | inherit | unset | revert | revert-layer ")]
20#[derive(Parse, Peek, ToSpan, ToCursors, StyleValue, Visitable, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
21#[style_value(
22	initial = "see individual properties",
23	applies_to = "see individual properties",
24	inherited = "see individual properties",
25	percentages = "see individual properties",
26	canonical_order = "per grammar",
27	animation_type = "see individual properties"
28)]
29#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
30#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.all"))]
31#[visit]
32pub enum AllStyleValue {}