layout/reftests/svg/text/multiple-text-selection-ref.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/svg/text/multiple-text-selection-ref.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,23 @@
     1.4 +<!--
     1.5 +     Any copyright is dedicated to the Public Domain.
     1.6 +     http://creativecommons.org/publicdomain/zero/1.0/
     1.7 +-->
     1.8 +<!DOCTYPE html>
     1.9 +<style>
    1.10 +html, body { margin: 0 }
    1.11 +svg, div { display: inline-block; width: 700px; height: 200px }
    1.12 +div { font: 16px sans-serif }
    1.13 +#a { margin-left: -700px; vertical-align: 100px }
    1.14 +#b { margin-left: -700px; vertical-align: 50px }
    1.15 +span { margin-left: 100px }
    1.16 +</style>
    1.17 +<body>
    1.18 +  <svg></svg><div id=a><span>hello</span></div><div id=b><span>there</span></div>
    1.19 +  <script>
    1.20 +    var span = document.getElementsByTagName("span");
    1.21 +    var range = document.createRange();
    1.22 +    range.setStart(span[0].firstChild, 1);
    1.23 +    range.setEnd(span[1].firstChild, 4);
    1.24 +    window.getSelection().addRange(range);
    1.25 +  </script>
    1.26 +</body>

mercurial