Skip to main content

css_ast/types/
offset_path.rs

1use super::prelude::*;
2use crate::{BasicShape, RayFunction, Url};
3
4/// <https://drafts.csswg.org/css-fonts-4/#numeric-spacing-values>
5///
6/// ```text,ignore
7/// <offset-path> = <ray()> | <url> | <basic-shape>
8/// ```
9#[derive(Parse, Peek, SemanticEq, ToCursors, ToSpan, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
10#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
11#[cfg_attr(feature = "visitable", derive(csskit_derives::Visitable), visit(self))]
12#[derive(csskit_derives::NodeWithMetadata)]
13pub enum OffsetPath {
14	RayFunction(RayFunction),
15	Url(Url),
16	BasicShape(BasicShape),
17}