use crate::style::{ComputedStyle, Modifier};
pub(super) fn inherit_inheritable_from(working: &mut ComputedStyle, parent: &ComputedStyle) {
working.fg = parent.fg;
let inherit_mods = Modifier::BOLD | Modifier::ITALIC;
working.modifiers = parent.modifiers & inherit_mods;
working.white_space = parent.white_space;
working.user_select = parent.user_select;
working.vars = parent.vars.clone();
}
pub(super) fn layout_differs(a: &ComputedStyle, b: &ComputedStyle) -> bool {
a.width != b.width
|| a.height != b.height
|| a.min_width != b.min_width
|| a.max_width != b.max_width
|| a.min_height != b.min_height
|| a.max_height != b.max_height
|| a.aspect_ratio != b.aspect_ratio
|| a.padding != b.padding
|| a.margin != b.margin
|| a.gap != b.gap
|| a.flex_shrink != b.flex_shrink
|| a.border != b.border
|| a.border_collapse != b.border_collapse
|| a.border_collapse_declared != b.border_collapse_declared
|| a.direction != b.direction
|| a.overflow_x != b.overflow_x
|| a.overflow_y != b.overflow_y
|| a.display != b.display
|| a.white_space != b.white_space
}