<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="800" height="600" onload="runRepaintAndPixelTest()"> | |
<script xlink:href="../resources/text-based-repaint.js"/> | |
<text x="10" y="10" >foobar</text> | |
<script> | |
var s = getSelection(); | |
var text = document.querySelector("text"); | |
s.setBaseAndExtent(text.firstChild, 2, text.firstChild, 4); | |
function repaintTest() { | |
s.setBaseAndExtent(text.firstChild, 2, text.firstChild, 5); | |
} | |
</script> | |
</svg> |