accessibility_tree/style/values/
background.rs

1use crate::style::errors::PropertyParseError;
2use cssparser::{Color, Parser};
3
4pub struct Background {
5    pub color: Option<Color>,
6}
7
8impl super::Parse for Background {
9    fn parse<'i, 't>(parser: &mut Parser<'i, 't>) -> Result<Self, PropertyParseError<'i>> {
10        Ok(Background {
11            color: Some(Color::parse(parser)?),
12        })
13    }
14}