Skip to main content

parse_pixel_value_or_system

Function parse_pixel_value_or_system 

Source
pub fn parse_pixel_value_or_system(
    input: &str,
) -> Result<PixelValueOrSystem, CssPixelValueParseError<'_>>
Expand description

Parse a pixel value that may include system metric references.

Accepts: 10px, 1.5em, system:button-padding, etc.

ยงErrors

Returns an error if input is not a valid CSS pixel-value-or-system value.