accessibility-tree 0.0.14

Accessibility tree binding CSS styles and vectors to elements. Used mainly for accessibility-rs crate.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::style::errors::PropertyParseError;
use cssparser::{Color, Parser};

pub struct Background {
    pub color: Option<Color>,
}

impl super::Parse for Background {
    fn parse<'i, 't>(parser: &mut Parser<'i, 't>) -> Result<Self, PropertyParseError<'i>> {
        Ok(Background {
            color: Some(Color::parse(parser)?),
        })
    }
}