css_ast/values/link_params/
mod.rs

1#![allow(warnings)]
2//! https://drafts.csswg.org/css-link-params-1/
3
4mod impls;
5use super::prelude::*;
6use impls::*;
7/// Represents the style value for `link-parameters` as defined in [css-link-params-1](https://drafts.csswg.org/css-link-params-1/#link-parameters).
8///
9/// The grammar is defined as:
10///
11/// ```text,ignore
12/// none | <param()>#
13/// ```
14///
15/// https://drafts.csswg.org/css-link-params-1/#link-parameters
16#[syntax(" none | <param()># ")]
17#[derive(
18	Parse, Peek, ToSpan, ToCursors, DeclarationMetadata, SemanticEq, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
19)]
20#[declaration_metadata(
21    initial = "none",
22    applies_to = Elements|PseudoElements,
23    animation_type = Discrete,
24    property_group = LinkParams,
25    computed_value_type = AsSpecified,
26    canonical_order = "per grammar",
27)]
28#[cfg_attr(feature = "serde", derive(serde::Serialize), serde())]
29#[cfg_attr(feature = "css_feature_data", derive(ToCSSFeature), css_feature("css.properties.link-parameters"))]
30#[cfg_attr(feature = "visitable", derive(Visitable), visit)]
31pub struct LinkParametersStyleValue<'a>;