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

--HG--
extra : transplant_source : %A3%A6%A0X%C2%1B%CE%E1-%1F%5Ci%A9%06%10%29h%E8/%B7
This commit is contained in:
Boris Zbarsky ext:(%2C%20L.%20David%20Baron%20%3Cdbaron%40dbaron.org%3E) 2016-09-29 14:15:32 -07:00
parent 13bc05d1b6
commit 6c8e907ee2
3 changed files with 21 additions and 0 deletions

View File

@ -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>

View File

@ -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>

View File

@ -137,3 +137,5 @@ pref(svg.transform-box.enabled,true) == transform-box-svg-2b.svg transform-box-s
== 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