<!DOCTYPE HTML>
<script>
if (window.testRunner)
    testRunner.waitUntilDone();

window.onload = function() {
    requestAnimationFrame(function() {
        document.querySelector("svg").style.backgroundColor = "green";
        if (window.testRunner)
            window.testRunner.notifyDone();
    });
};
</script>
<svg width="200px" height="100px" viewBox="0 0 100 100" style="background-color: red"></svg>
