Bug 1392161 - Part 3: Add reftests for relative lengths. r=xidorn
authorBoris Chiou <boris.chiou@gmail.com>
Mon, 04 Sep 2017 17:06:18 +0800
changeset 430042 5872feaa0656d6e2017abfdfefc920c3d690fe68
parent 430041 7ac6470c98a1c3a51cf96653e29e88e86add906e
child 430043 2ac5c1345f1353b685a8e18abe31134e0c0712cf
push id7761
push userjlund@mozilla.com
push dateFri, 15 Sep 2017 00:19:52 +0000
treeherdermozilla-beta@c38455951db4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersxidorn
bugs1392161
milestone57.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1392161 - Part 3: Add reftests for relative lengths. r=xidorn MozReview-Commit-ID: 7ObURT1LS0I
layout/reftests/transform/reftest.list
layout/reftests/transform/translate-rounding-1.html
layout/reftests/transform/translate-rounding-2.html
layout/reftests/transform/translate-rounding-3.html
layout/reftests/transform/translate-rounding-ref.html
layout/reftests/transform/translate-rounding-viewport-ref.html
--- a/layout/reftests/transform/reftest.list
+++ b/layout/reftests/transform/reftest.list
@@ -139,8 +139,13 @@ pref(svg.transform-box.enabled,true) == 
 == transform-origin-svg-2b.svg transform-origin-svg-2-ref.svg
 # Bug 1122526
 == animate-layer-scale-inherit-1.html animate-layer-scale-inherit-1-ref.html
 == animate-layer-scale-inherit-2.html animate-layer-scale-inherit-2-ref.html
 == animate-layer-scale-inherit-3.html animate-layer-scale-inherit-1-ref.html
 # Bug 1301500
 == dynamic-add-without-change-cb-1.html dynamic-add-without-change-cb-1-ref.html
 fuzzy-if(d2d,1,5) fuzzy-if(skiaContent,22,180) == table-overflowed-by-animation.html table-overflowed-by-animation-ref.html
+# Bug 1392161. These tests are failed on Gecko (Bug 1396535). The viewport
+# length transform test is also failed on Servo backend.
+fails-if(!stylo) == translate-rounding-1.html translate-rounding-ref.html
+fails-if(!stylo) == translate-rounding-2.html translate-rounding-ref.html
+fails == translate-rounding-3.html translate-rounding-viewport-ref.html
new file mode 100644
--- /dev/null
+++ b/layout/reftests/transform/translate-rounding-1.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<html>
+  <head>
+    <title>Bug 1392161 - Transform translate rounding (em)</title>
+    <style>
+      div {
+        height: 100px;
+        width: 100px;
+        background: blue;
+        font-size: 10px;
+        transform: scale(100000) translate(0.0001em) scale(0.00001);
+      }
+    </style>
+  </head>
+  <body>
+    <div></div>
+  </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/transform/translate-rounding-2.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+  <head>
+    <title>Bug 1392161 - Transform translate rounding (rem)</title>
+    <style>
+      div {
+        height: 100px;
+        width: 100px;
+        background: blue;
+        transform: scale(100000) translate(0.0001rem) scale(0.00001);
+      }
+      html {
+        font-size: 10px;
+      }
+    </style>
+  </head>
+  <body>
+    <div></div>
+  </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/transform/translate-rounding-3.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html>
+  <head>
+    <title>Bug 1392161 - Transform translate rounding (viewport size)</title>
+    <style>
+      div {
+        height: 100px;
+        width: 100px;
+        background: blue;
+        transform: scale(100000) translate(0.0005vw) scale(0.00001);
+      }
+    </style>
+  </head>
+  <body>
+    <div></div>
+  </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/transform/translate-rounding-ref.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<html>
+  <head>
+    <title>Bug 1392161 - Translate rounding reference</title>
+    <style>
+      div {
+        height: 100px;
+        width: 100px;
+        background: blue;
+        position: relative;
+        left: 100px;
+      }
+    </style>
+  </head>
+  <body>
+    <div></div>
+  </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/transform/translate-rounding-viewport-ref.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<html>
+  <head>
+    <title>Bug 1392161 - Translate rounding reference (viewport)</title>
+    <style>
+      div {
+        height: 100px;
+        width: 100px;
+        background: blue;
+        position: relative;
+        left: 50vw;
+      }
+    </style>
+  </head>
+  <body>
+    <div></div>
+  </body>
+</html>