mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
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:
committed by
Jelle Raaijmakers
parent
f06bd0303f
commit
915fc4602b
Notes:
github-actions[bot]
2026-03-19 09:27:01 +00:00
Author: https://github.com/Calme1709 Commit: https://github.com/LadybirdBrowser/ladybird/commit/915fc4602b7 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/8409 Reviewed-by: https://github.com/gmta ✅ Reviewed-by: https://github.com/tcl3
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user