mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 17:49:40 +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
Notes:
sideshowbarker
2024-07-17 17:58:14 +09:00
Author: https://github.com/awesomekling
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