Skip to main content

css_ast/values/cascade/
mod.rs

1// AUTO-GENERATED from w3c/csswg-drafts
2// Commit: https://github.com/w3c/csswg-drafts/commit/27fd597de31a8c43234f99f58983e4af3d1f9282
3// Do not edit this file directly.
4#![allow(warnings)]
5//! https://drafts.csswg.org/css-cascade-6/
6
7mod impls;
8use super::prelude::*;
9use impls::*;
10/// Represents the style value for `all` as defined in [css-cascade-6](https://drafts.csswg.org/css-cascade-6/#all).
11///
12/// 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.
13///
14/// The grammar is defined as:
15///
16/// ```text,ignore
17/// initial | inherit | unset | revert | revert-layer | revert-rule
18/// ```
19///
20/// https://drafts.csswg.org/css-cascade-6/#all
21#[syntax(" initial | inherit | unset | revert | revert-layer | revert-rule ")]
22#[derive(
23	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
24)]
25#[declaration_metadata(
26    initial = "see individual properties",
27    inherits = Unknown,
28    applies_to = Unknown,
29    animation_type = Unknown,
30    percentages = Unknown,
31    shorthand = true,
32    shorthand_resets_all = true,
33    property_group = Cascade,
34    computed_value_type = Unknown,
35    canonical_order = "per grammar",
36)]
37#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
38#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.all"))]
39#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
40#[derive(csskit_derives::NodeWithMetadata)]
41pub enum AllStyleValue<'a> {}