mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibWeb: Remove special handling of z-index resolved value
Previously we waited until used-value time to apply handling for the z-index value that we should have applied at declared or computed-value time, which was papered over by returning the used rather than computed value as the resolved value. This is no longer required. This allows us to unmark z-index as requiring a layout node to get resolved value.
This commit is contained in:
committed by
Jelle Raaijmakers
parent
124b142ae4
commit
761ccdb5e3
Notes:
github-actions[bot]
2026-03-26 11:31:09 +00:00
Author: https://github.com/Calme1709 Commit: https://github.com/LadybirdBrowser/ladybird/commit/761ccdb5e3e Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/8609 Reviewed-by: https://github.com/gmta ✅
@@ -1023,10 +1023,6 @@ RefPtr<StyleValue const> CSSStyleProperties::style_value_for_computed_property(L
|
||||
return used_values_for_grid_template_rows;
|
||||
}
|
||||
}
|
||||
} else if (property_id == PropertyID::ZIndex) {
|
||||
if (auto z_index = layout_node.computed_values().z_index(); z_index.has_value()) {
|
||||
return NumberStyleValue::create(z_index.value());
|
||||
}
|
||||
}
|
||||
|
||||
if (!property_is_shorthand(property_id))
|
||||
|
||||
Reference in New Issue
Block a user