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:
parent
d144da3a62
commit
0401d7da36
1 changed files with 1 additions and 1 deletions
|
@ -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 {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue