Index: LayoutTests/compositing/squashing/squashing-inside-perspective.html |
diff --git a/LayoutTests/compositing/squashing/squashing-inside-perspective.html b/LayoutTests/compositing/squashing/squashing-inside-perspective.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..ce6b3ce064af2b9a1cc342e731281c1ad10ab1c4 |
--- /dev/null |
+++ b/LayoutTests/compositing/squashing/squashing-inside-perspective.html |
@@ -0,0 +1,17 @@ |
+<!DOCTYPE html> |
+ |
+<div style="z-index: 1; position: absolute"></div> |
+<div style="z-index: 0; perspective: 1000px; position: absolute;"> |
+ <div style="position: absolute; width: 200px; height: 200px; background-color: darkBlue; transform: translate3d(0px, 74px, 200px);"> |
+ </div> |
+</div> |
+<script> |
+// Tests that a squashed layer that is the child of an element with perspective on it uses that element as its transform ancestor. |
+ |
+if (window.internals) |
+ internals.settings.setLayerSquashingEnabled(true); |
+if (window.testRunner) { |
+ testRunner.dumpAsText(); |
+ testRunner.setCustomTextOutput(window.internals.layerTreeAsText(document)); |
+} |
+</script> |