Index: LayoutTests/compositing/perspective-origin-overflow-hidden.html |
diff --git a/LayoutTests/compositing/perspective-origin-overflow-hidden.html b/LayoutTests/compositing/perspective-origin-overflow-hidden.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..9c7475e849cf6d07b886fcc8d4800d2714551c88 |
--- /dev/null |
+++ b/LayoutTests/compositing/perspective-origin-overflow-hidden.html |
@@ -0,0 +1,33 @@ |
+<!DOCTYPE html> |
+ |
+<!-- |
+ The perspective origin should be positioned in the container's border box, |
+ regardless of the presence of an overflow clip. |
+--> |
+ |
+<style> |
+.container { |
+ background-color: green; |
+ border: 10px solid black; |
+ overflow: hidden; |
+ position: relative; |
+ width: 100px; |
+ height: 100px; |
+ margin: 10px 0; |
+ perspective: 500px; |
+} |
+.transformed { |
+ background-color: blue; |
+ width: 50px; |
+ height: 50px; |
+ transform: translateZ(-1000px); |
+} |
+</style> |
+ |
+<div class="container"> |
+ <div class="transformed"></div> |
+</div> |
+ |
+<div class="container" style="perspective-origin: 60% 40px"> |
+ <div class="transformed"></div> |
+</div> |