[−][src]Function azul_css_parser::parse_style_background_size
pub fn parse_style_background_size<'a>(
input: &'a str
) -> Result<StyleBackgroundSize, InvalidValueErr<'a>>
Parses a StyleBackgroundSize
attribute from a &str
Example
assert_eq!(parse_style_background_size("contain"), Ok(StyleBackgroundSize::Contain)); assert_eq!(parse_style_background_size("cover"), Ok(StyleBackgroundSize::Cover));