css_ast/values/link_params/
mod.rs

1#![allow(warnings)]
2//! CSS Linked Parameters
3//! https://drafts.csswg.org/css-link-params-1/
4
5mod impls;
6use impls::*;
7
8/// Represents the style value for `link-parameters` as defined in [css-link-params-1](https://drafts.csswg.org/css-link-params-1/#link-parameters).
9///
10/// The grammar is defined as:
11///
12/// ```text,ignore
13/// none | <param()>#
14/// ```
15///
16// https://drafts.csswg.org/css-link-params-1/#link-parameters
17#[syntax(" none | <param()># ")]
18#[derive(Parse, Peek, ToSpan, ToCursors, StyleValue, Visitable, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
19#[style_value(
20	initial = "none",
21	applies_to = "all elements and pseudo-elements",
22	inherited = "no",
23	percentages = "n/a",
24	canonical_order = "per grammar",
25	animation_type = "discrete"
26)]
27#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
28#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.link-parameters"))]
29#[visit]
30pub struct LinkParametersStyleValue<'a>;