Mypal/layout/reftests/scoped-style/scoped-style-dynamic-013.svg

16 lines
365 B
XML
Raw Permalink Normal View History

2019-03-11 10:26:37 +00:00
<svg xmlns="http://www.w3.org/2000/svg" onload="f()">
<rect width="50" height="50"/>
<g>
<style>
rect { fill: blue }
</style>
<rect x="60" width="50" height="50"/>
</g>
<rect x="120" width="50" height="50"/>
<script>
function f() {
document.getElementsByTagName("style")[0].setAttribute("scoped", "");
}
</script>
</svg>