hpx-browser 2.4.23

Headless browser engine for hpx: HTML parsing, rendering, CDP, and canvas support
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::css_values::property::PropertyId;

pub fn is_inherited(property: &PropertyId) -> bool {
    matches!(
        property,
        PropertyId::Color
            | PropertyId::FontSize
            | PropertyId::FontFamily
            | PropertyId::FontWeight
            | PropertyId::FontStyle
            | PropertyId::LineHeight
            | PropertyId::TextAlign
            | PropertyId::WhiteSpace
            | PropertyId::Visibility
            | PropertyId::Custom(_)
    )
}