Bug 695832 - Test for perspective origin not being affected by transform origin. r=roc
authorMatt Woodrow <mwoodrow@mozilla.com>
Mon, 31 Oct 2011 13:39:26 +1300
changeset 80096 7dd08f6dcf0839ce046487ff87fc25b737c1a4fe
parent 80095 ea80b4183ccfd01dc0081c76411604b8019847bf
child 80097 7e59a560d23798f1b02fc40ea228494394df369c
push id506
push userclegnitto@mozilla.com
push dateWed, 09 Nov 2011 02:03:18 +0000
treeherdermozilla-aurora@63587fc7bb93 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersroc
bugs695832
milestone10.0a1
Bug 695832 - Test for perspective origin not being affected by transform origin. r=roc
layout/reftests/transform-3d/reftest.list
layout/reftests/transform-3d/rotatex-transformorigin-1-ref.html
layout/reftests/transform-3d/rotatex-transformorigin-1a.html
--- a/layout/reftests/transform-3d/reftest.list
+++ b/layout/reftests/transform-3d/reftest.list
@@ -30,8 +30,10 @@ fails == preserve3d-1a.html preserve3d-1
 == backface-visibility-1b.html about:blank
 != perspective-origin-1a.html rotatex-perspective-1a.html
 == perspective-origin-1b.html perspective-origin-1a.html
 != sorting-1a.html sorting-1-ref.html
 # Parallel planes, different z depth
 == sorting-2a.html sorting-2-ref.html
 # Parallel planes, same z depth (shouldn't be sorted!)
 == sorting-2b.html sorting-2-ref.html
+# Different, but equivalent (for the given transform) transform origins
+== rotatex-transformorigin-1a.html rotatex-transformorigin-1-ref.html
new file mode 100644
--- /dev/null
+++ b/layout/reftests/transform-3d/rotatex-transformorigin-1-ref.html
@@ -0,0 +1,11 @@
+<html>
+<head>
+</head>
+<body>
+  <div style="-moz-perspective: 1000px;">
+    <div style="-moz-transform: rotatex(45deg); -moz-transform-origin: top right; width: 100px; height: 100px;">
+      Test Text
+    </div>
+  </div>
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/transform-3d/rotatex-transformorigin-1a.html
@@ -0,0 +1,11 @@
+<html>
+<head>
+</head>
+<body>
+  <div style="-moz-perspective: 1000px;">
+    <div style="-moz-transform: rotatex(45deg); -moz-transform-origin: top left; width: 100px; height: 100px;">
+      Test Text
+    </div>
+  </div>
+</body>
+</html>