pub type SpecifiedValue = VariableValue;Expand description
Both specified and computed values are VariableValues, the difference is whether var() functions are expanded.
Aliased Type§
pub struct SpecifiedValue {
pub css: String,
pub url_data: UrlExtraData,
first_token_type: TokenSerializationType,
last_token_type: TokenSerializationType,
references: References,
}Fields§
§css: StringThe raw CSS string.
url_data: UrlExtraDataThe url data of the stylesheet where this value came from.
first_token_type: TokenSerializationType§last_token_type: TokenSerializationType§references: Referencesvar(), env(), or non-custom property (e.g. through em) references.
Trait Implementations§
Source§impl ToCss for SpecifiedValue
impl ToCss for SpecifiedValue
Source§fn to_css<W>(&self, dest: &mut CssWriter<'_, W>) -> Resultwhere
W: Write,
fn to_css<W>(&self, dest: &mut CssWriter<'_, W>) -> Resultwhere
W: Write,
Serialize
self in CSS syntax, writing to dest.Source§fn to_css_string(&self) -> String
fn to_css_string(&self) -> String
Serialize
self in CSS syntax and return a string. Read moreSource§fn to_css_cssstring(&self) -> String
fn to_css_cssstring(&self) -> String
Serialize
self in CSS syntax and return a CssString. Read more