Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- Manifest: layout/reftests/svg/reftest.list
<!--
Any copyright is dedicated to the Public Domain.
-->
<title>Testcase for style changes</title>
<style id="s" type="text/css">
tspan { fill: red; }
</style>
<script>
function m()
{
var s = document.getElementById("s");
s.appendChild(document.createTextNode("tspan { fill: green }"));
s.appendChild(document.createTextNode("tspan { fill: red }"));
s.removeChild(s.lastChild);
}
</script>
<text>
<tspan x="10" y="50">
This should be green
</tspan>
</text>
</svg>