css_ast/types/
compat_special.rs

1use super::prelude::*;
2
3/// <https://drafts.csswg.org/css-ui-4/#typedef-appearance-compat-special>
4///
5/// These values exist for compatibility of content developed for earlier non-standard versions of this property.
6/// For the purpose of this specification, they all have the same effect as auto.
7/// However, the host language may also take these values into account when defining the native appearance of the element.
8///
9/// ```text,ignore
10/// <compat-special> = textfield | menulist-button
11/// ```
12#[derive(Parse, Peek, ToCursors, ToSpan, SemanticEq, Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
13#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
14#[cfg_attr(feature = "visitable", derive(csskit_derives::Visitable), visit(skip))]
15pub enum CompatSpecial {
16	#[atom(CssAtomSet::Textfield)]
17	Textfield(T![Ident]),
18	#[atom(CssAtomSet::MenulistButton)]
19	MenulistButton(T![Ident]),
20}