pub fn parse_style_background_repeat<'a>(
input: &'a str,
) -> Result<StyleBackgroundRepeat, InvalidValueErr<'a>>Expand description
Parses a StyleBackgroundRepeat attribute from a &str
ยงExample
assert_eq!(parse_style_background_repeat("no-repeat"), Ok(StyleBackgroundRepeat::NoRepeat));
assert_eq!(parse_style_background_repeat("repeat"), Ok(StyleBackgroundRepeat::Repeat));
assert_eq!(parse_style_background_repeat("repeat-x"), Ok(StyleBackgroundRepeat::RepeatX));
assert_eq!(parse_style_background_repeat("repeat-y"), Ok(StyleBackgroundRepeat::RepeatY));