css_ast/types/compat_special.rs
1use css_parse::keyword_set;
2use csskit_derives::Visitable;
3
4keyword_set!(
5 /// <https://drafts.csswg.org/css-ui-4/#typedef-appearance-compat-special>
6 ///
7 /// These values exist for compatibility of content developed for earlier non-standard versions of this property.
8 /// For the purpose of this specification, they all have the same effect as auto.
9 /// However, the host language may also take these values into account when defining the native appearance of the element.
10 ///
11 /// ```text,ignore
12 /// <compat-special> = textfield | menulist-button
13 /// ```
14 #[derive(Visitable)]
15 #[visit(skip)]
16 pub enum CompatSpecial {
17 Textfield: "textfield",
18 MenulistButton: "menulist-button"
19 }
20);