<!DOCTYPE html>
<div id="target" style="width: 100px; height: 100px; background: blue; transform: scale(0); transform-origin: 0 0"></div>
<script src="../../../resources/run-after-layout-and-paint.js"></script>
<script>
runAfterLayoutAndPaint(function() {
target.style.transform = "scale(2)";
}, true);
</script>