<!DOCTYPE HTML> | |
<script src="../resources/text-based-repaint.js"></script> | |
<script> | |
window.testIsAsync = true; | |
window.onload = runRepaintAndPixelTest; | |
function repaintTest() { | |
var svg = document.querySelector('svg'); | |
setTimeout(function() { | |
svg.style.backgroundColor = "green"; | |
requestAnimationFrame(function() { | |
if (window.testRunner) | |
finishRepaintTest(); | |
}); | |
}, 0); | |
}; | |
</script> | |
<svg width="200px" height="100px" viewBox="0 0 100 100" | |
style="background-color: red"> | |
</svg> |