Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- Manifest: layout/reftests/svg/text/reftest.list
<!--
Any copyright is dedicated to the Public Domain.
-->
<g transform="translate(100,100)" style="font: 16px sans-serif; fill: green">
<text>hello</text>
</g>
<script>
var text = document.getElementsByTagName("text")[0];
var range = document.createRange();
range.setStart(text.firstChild, 1);
range.setEnd(text.firstChild, 4);
window.getSelection().addRange(range);
</script>
</svg>