1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
use crate::css_values::property::PropertyId; /// Returns whether a CSS property inherits by default. 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(_) ) }