1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 03:18:11 +00:00

LibWeb: Preserve z-index:auto in CSS::ComputedValues

This is still interesting for debugging purposes, so let's not blindly
convert "auto" to 0. Code later down the line handles "auto" anyway.
This commit is contained in:
Andreas Kling 2022-03-04 15:01:01 +01:00
parent d144da3a62
commit 0401d7da36

View file

@ -156,7 +156,7 @@ Optional<int> StyleProperties::z_index() const
auto& value = maybe_value.value();
if (value->has_auto())
return 0;
return {};
if (value->has_integer())
return value->to_integer();
return {};