summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-03-04 15:01:01 +0100
committerAndreas Kling <kling@serenityos.org>2022-03-04 15:52:42 +0100
commit0401d7da36214b10f6e2aad054937d85a7c72a31 (patch)
treee85421fc5c11aad0013922e6cdff13c7fb0cd8e8 /Userland
parentd144da3a62565702c0262a41f07457a3aa3a4fc1 (diff)
downloadserenity-0401d7da36214b10f6e2aad054937d85a7c72a31.zip
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.
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Libraries/LibWeb/CSS/StyleProperties.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/StyleProperties.cpp b/Userland/Libraries/LibWeb/CSS/StyleProperties.cpp
index 0fb4738608..6dc10cd3de 100644
--- a/Userland/Libraries/LibWeb/CSS/StyleProperties.cpp
+++ b/Userland/Libraries/LibWeb/CSS/StyleProperties.cpp
@@ -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 {};