Skip to main content

parse_layout_padding_bottom

Function parse_layout_padding_bottom 

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

Parses a LayoutPaddingBottom attribute from a &str

§Example

assert_eq!(parse_layout_padding_bottom("5px"), Ok(LayoutPaddingBottom { inner: PixelValue::px(5.0) }));

§Errors

Returns an error if input is not a valid CSS value for this property.