Skip to main content

substitute_value

Function substitute_value 

Source
pub fn substitute_value<'a>(
    property: &str,
    value: &[ComponentValue<'a>],
    custom: &Resolved<'a>,
) -> Result<Specified<'a>, InvalidValue>
Expand description

Substitutes var() in a property’s value and parses what results, as computing a value with var() in it does. An error is “invalid at computed-value time”, which the cascade turns into unset.