gecko-dev/layout/reftests/transform/dynamic-add-without-change-cb-1.html
Boris Zbarsky ext:(%2C%20L.%20David%20Baron%20%3Cdbaron%40dbaron.org%3E) 6c8e907ee2 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
2016-09-29 14:15:32 -07:00

12 lines
355 B
HTML

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