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:
Callum Law
2026-03-13 13:58:09 +13:00
committed by Jelle Raaijmakers
parent 124b142ae4
commit 761ccdb5e3
Notes: github-actions[bot] 2026-03-26 11:31:09 +00:00
2 changed files with 0 additions and 5 deletions

View File

@@ -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))