mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
424a479691
--HG-- rename : content/svg/content/test/test_getSubStringLength.xhtml => content/svg/content/test/test_selectSubString.xhtml rename : layout/reftests/svg/text/simple-selection.svg => layout/reftests/svg/text/selectSubString-2-ref.svg rename : layout/reftests/svg/text/simple-selection.svg => layout/reftests/svg/text/selectSubString-2.svg rename : layout/reftests/svg/text/simple-selection.svg => layout/reftests/svg/text/selectSubString-3-ref.svg rename : layout/reftests/svg/text/simple-selection.svg => layout/reftests/svg/text/selectSubString-3.svg rename : layout/reftests/svg/text/simple-selection.svg => layout/reftests/svg/text/selectSubString-ref.svg rename : layout/reftests/svg/text/simple-selection.svg => layout/reftests/svg/text/selectSubString.svg
17 lines
529 B
XML
17 lines
529 B
XML
<!--
|
|
Any copyright is dedicated to the Public Domain.
|
|
http://creativecommons.org/publicdomain/zero/1.0/
|
|
-->
|
|
<svg xmlns="http://www.w3.org/2000/svg" width="700" height="200">
|
|
<g transform="translate(100,100)" style="font: 16px sans-serif">
|
|
<text>hello</text>
|
|
</g>
|
|
<script>
|
|
var text = document.getElementsByTagName("text")[0];
|
|
var range = document.createRange();
|
|
range.setStart(text.firstChild, 0);
|
|
range.setEnd(text.firstChild, 5);
|
|
window.getSelection().addRange(range);
|
|
</script>
|
|
</svg>
|