css_ast/types/spacing_trim.rs
1use css_parse::keyword_set;
2use csskit_derives::Visitable;
3
4keyword_set!(
5 /// <https://drafts.csswg.org/css-text-4/#typedef-spacing-trim>
6 ///
7 /// ```text,ignore
8 /// <spacing-trim> = space-all | normal | space-first | trim-start | trim-both | trim-all
9 /// ```
10 #[derive(Visitable)]
11 #[visit(skip)]
12 pub enum SpacingTrim {
13 SpaceAll: "space-all",
14 Normal: "normal",
15 SpaceFirst: "space-first",
16 TrimStart: "trim-start",
17 TrimBoth: "trim-both",
18 TrimAll: "trim-all",
19 }
20);