17 lines
418 B
HTML
17 lines
418 B
HTML
<!DOCTYPE html>
|
|
<script>
|
|
if (window.testRunner)
|
|
testRunner.waitUntilDone();
|
|
|
|
window.onload = function() {
|
|
requestAnimationFrame(function() {
|
|
document.querySelector("svg").style.background = "green";
|
|
if (window.testRunner)
|
|
window.testRunner.notifyDone();
|
|
});
|
|
};
|
|
</script>
|
|
<div style="width: 100px; height: 100px; background: red">
|
|
<svg width="100" height="100"></svg>
|
|
</div>
|