Type Alias style::custom_properties::SpecifiedValue

source ·
pub type SpecifiedValue = VariableValue;
Expand description

Both specified and computed values are VariableValues, the difference is whether var() functions are expanded.

Aliased Type§

struct SpecifiedValue {
    pub css: String,
    pub url_data: UrlExtraData,
    first_token_type: TokenSerializationType,
    last_token_type: TokenSerializationType,
    references: References,
}

Fields§

§css: String

The raw CSS string.

§url_data: UrlExtraData

The url data of the stylesheet where this value came from.

§first_token_type: TokenSerializationType§last_token_type: TokenSerializationType§references: References

var(), env(), or non-custom property (e.g. through em) references.

Trait Implementations§

source§

impl ToCss for SpecifiedValue

source§

fn to_css<W>(&self, dest: &mut CssWriter<'_, W>) -> Result
where W: Write,

Serialize self in CSS syntax, writing to dest.
source§

fn to_css_string(&self) -> String

Serialize self in CSS syntax and return a string. Read more