<!DOCTYPE html> | |
<div id="target" style=" | |
position: absolute; | |
top: 100.6px; | |
right: 0; | |
height: 100px; | |
width: 100.6px; | |
transform: rotate(90deg); | |
transform-origin: 100% 0; | |
background-color: red"> | |
</div> | |
<script src="../../../resources/run-after-layout-and-paint.js"></script> | |
<script> | |
runAfterLayoutAndPaint(function() { | |
target.style.backgroundColor = "white"; | |
}, true); | |
</script> |