LibWeb: Implement CSS inherit() function

The remaining failing imported tests are due to wider issues which are
covered by FIXMEs (both existing and added in this commit)
This commit is contained in:
Callum Law
2026-03-14 16:04:41 +13:00
committed by Jelle Raaijmakers
parent f06bd0303f
commit 915fc4602b
Notes: github-actions[bot] 2026-03-19 09:27:01 +00:00
17 changed files with 346 additions and 2 deletions

View File

@@ -1664,7 +1664,7 @@ bool Document::layout_is_up_to_date() const
// include media conditions, or b) the data used to resolve media queries hasn't changed.
bool const needs_style_update_due_to_if_media = element.style_uses_if_css_function();
if (needs_full_style_update || node.needs_style_update() || parent_display_changed || (recompute_elements_depending_on_custom_properties && element.style_uses_var_css_function()) || needs_style_update_due_to_if_media) {
if (needs_full_style_update || node.needs_style_update() || parent_display_changed || (recompute_elements_depending_on_custom_properties && (element.style_uses_var_css_function() || element.style_uses_inherit_css_function())) || needs_style_update_due_to_if_media) {
node_invalidation = element.recompute_style(did_change_custom_properties);
} else if (needs_inherited_style_update) {
node_invalidation = element.recompute_inherited_style();