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