Skip to main content

css_ast/types/
context_property.rs

1use super::prelude::*;
2
3/// Identifies a paint property passed from an embedding element to an SVG image.
4#[node]
5#[derive(Parse, Peek, ToCursors, ToSpan, SemanticEq, Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
6#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
7#[cfg_attr(feature = "visitable", derive(Visitable), visit(self))]
8#[derive(NodeWithMetadata)]
9pub enum ContextProperty {
10	#[atom(CssAtomSet::Fill)]
11	Fill(T![Ident]),
12	#[atom(CssAtomSet::FillOpacity)]
13	FillOpacity(T![Ident]),
14	#[atom(CssAtomSet::Stroke)]
15	Stroke(T![Ident]),
16	#[atom(CssAtomSet::StrokeOpacity)]
17	StrokeOpacity(T![Ident]),
18}