css_ast/types/
content_distribution.rs

1use super::prelude::*;
2
3/// <https://drafts.csswg.org/css-align-3/#typedef-content-distribution>
4///
5/// ```text,ignore
6/// <content-distribution> = space-between | space-around | space-evenly | stretch
7/// ```
8#[derive(Parse, Peek, IntoCursor, ToCursors, Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
9#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
10#[cfg_attr(feature = "visitable", derive(csskit_derives::Visitable), visit(self))]
11pub enum ContentDistribution {
12	#[atom(CssAtomSet::SpaceBetween)]
13	SpaceBetween(T![Ident]),
14	#[atom(CssAtomSet::SpaceAround)]
15	SpaceAround(T![Ident]),
16	#[atom(CssAtomSet::SpaceEvenly)]
17	SpaceEvenly(T![Ident]),
18	#[atom(CssAtomSet::Stretch)]
19	Stretch(T![Ident]),
20}