Index: third_party/WebKit/LayoutTests/compositing/squashing/squash-transformed-with-clip.html |
diff --git a/third_party/WebKit/LayoutTests/compositing/squashing/squash-transformed-with-clip.html b/third_party/WebKit/LayoutTests/compositing/squashing/squash-transformed-with-clip.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..7af100e264bfa0f19b7fd44e4ec83e93e68e9bdf |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/compositing/squashing/squash-transformed-with-clip.html |
@@ -0,0 +1,20 @@ |
+<style> |
+#overlap { |
+ width: 10px; |
+ height: 100px; |
+ background: green; |
+ will-change: transform; |
+} |
+#transformed { |
+ position: absolute; |
+ left: 0; |
+ top: 0; |
+ overflow: hidden; |
+ transform: translate(0, 50px); |
+} |
+</style> |
+<div id="overlap"></div> |
+<div id="transformed"> |
+ This test succeeds if this text is visible. |
+</div> |
+This test verifies squashed transformed elements have their ancestor clip and local clip applied in the correct spaces. |