Files
tubestation/layout/reftests/transform/dynamic-add-without-change-cb-1.html
Boris Zbarsky e9710ac400 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
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>