Explorar el Código

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.
Andreas Kling hace 3 años
padre
commit
0401d7da36
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Userland/Libraries/LibWeb/CSS/StyleProperties.cpp

+ 1 - 1
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 {};