Bug 1301500 - Add reftest. r=heycam
authorBoris Zbarsky <bzbarsky@mit.edu>, L. David Baron <dbaron@dbaron.org>
Thu, 29 Sep 2016 14:15:32 -0700
changeset 315842 56055d850969c7ce96aeb988079c8685428172f5
parent 315841 5fd6dd2bdbfaafbd7c48d3a804c15ec7fc769782
child 315843 7f7c7197e8ea6311df402e2bf32506f530f59399
push id82291
push userdbaron@mozilla.com
push dateThu, 29 Sep 2016 21:22:15 +0000
treeherdermozilla-inbound@56055d850969 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersheycam
bugs1301500
milestone52.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 1301500 - Add reftest. r=heycam Test by bzbarsky; reference by dbaron. The test passes with the patch. With the changes to RestyleManagerBase::ProcessRestyledFrames reverted, the test shows the expected mispositioning resulting from not applying the transform. MozReview-Commit-ID: 7oIQFD8QKUn
layout/reftests/transform/dynamic-add-without-change-cb-1-ref.html
layout/reftests/transform/dynamic-add-without-change-cb-1.html
layout/reftests/transform/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/transform/dynamic-add-without-change-cb-1-ref.html
@@ -0,0 +1,8 @@
+<!DOCTYPE html>
+<html>
+  The green square below should be centered.
+  <div style="width: 400px; height: 400px; position: absolute;
+              perspective: 600px; left: calc(50% - 200px);
+              top: calc(50% - 200px); background: green;">
+  </div>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/transform/dynamic-add-without-change-cb-1.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html>
+  The green square below should be centered.
+  <div style="width: 400px; height: 400px; position: absolute;
+              perspective: 600px; left: 50%; top: 50%; background: green;">
+  </div>
+  <script>
+    document.body.offsetWidth;
+    document.querySelector("div").style.transform = "translate(-50%, -50%)";
+  </script>
+</html>
--- a/layout/reftests/transform/reftest.list
+++ b/layout/reftests/transform/reftest.list
@@ -132,8 +132,10 @@ pref(svg.transform-box.enabled,true) == 
 == transform-origin-svg-1a.svg transform-origin-svg-1-ref.svg
 == transform-origin-svg-1b.svg transform-origin-svg-1-ref.svg
 == transform-origin-svg-2a.svg transform-origin-svg-2-ref.svg
 == 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