Fixes the bug when non-positioned boxes that establish a stacking context and have z-index=0 are ignored during paint commands recording.
@@ -0,0 +1,7 @@
+<!doctype html>
+<link rel="match" href="reference/non-positioned-stacking-context-with-z-index-0-ref.html"/>
+<style>
+* { outline: 1px solid black; }
+html { display: flex; }
+body { z-index: 0; }
+</style><body><div>Hello
@@ -0,0 +1,5 @@
@@ -107,7 +107,7 @@ void StackingContext::paint_descendants(PaintContext& context, Paintable const&
return;
}
- if (stacking_context && z_index.has_value())
+ if (stacking_context && z_index.value_or(0) != 0)
if (child.is_positioned() && !z_index.has_value())