Index: LayoutTests/compositing/squashing/composited-bounds-for-negative-z.html |
diff --git a/LayoutTests/compositing/squashing/composited-bounds-for-negative-z.html b/LayoutTests/compositing/squashing/composited-bounds-for-negative-z.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..ebf3c4b6578bca86e193e619e1b855e13cfb6031 |
--- /dev/null |
+++ b/LayoutTests/compositing/squashing/composited-bounds-for-negative-z.html |
@@ -0,0 +1,26 @@ |
+<!DOCTYPE html> |
+<div style="transform: translateZ(0); |
+ height: 10px; |
+ width: 10px; |
+ position: absolute; |
+ background-color: red; |
+ z-index: -1"></div> |
+<div style="margin-left: 100px; |
+ margin-top: 100px; |
+ height: 300px; |
+ width: 300px; |
+ overflow-y: scroll;"> |
+ <div style="position: relative"> |
+ <div style="position: relative; |
+ height: 1000px; |
+ background-color: lightblue"> |
+ </div> |
+ </div> |
+</div> |
+<script> |
+if (window.testRunner) { |
+ testRunner.dumpAsText(); |
+ internals.settings.setLayerSquashingEnabled(true); |
+ testRunner.setCustomTextOutput(internals.layerTreeAsText(document)); |
+} |
+</script> |