blob: c3ab586c4d71ef03a70a31b89a1c7b195e14999e [file] [log] [blame]
<!DOCTYPE html>
<html>
<style>
#container {
width: 100px;
height: 100px;
}
</style>
<body>
<p>Test passes if you see a single 100px by 100px green box below.</p>
<div id="container">
<svg>
<radialGradient id="red-gradient">
<stop offset="0" stop-color="red"/>
</radialGradient>
<radialGradient id="green-gradient">
<stop offset="0" stop-color="green"/>
</radialGradient>
<radialGradient id="gradientUse" href="#red-gradient"/>
<rect id="rect" width="100" height="100" fill="url(#gradientUse)"/>
</svg>
</div>
<script>
window.onload = () => {
if (window.testRunner)
testRunner.waitUntilDone();
requestAnimationFrame(() => {
gradientUse.setAttribute('href', '#green-gradient');
if (window.testRunner)
testRunner.notifyDone();
});
}
</script>
</body>
</html>