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

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

     1 <!--
     2      Any copyright is dedicated to the Public Domain.
     3      http://creativecommons.org/publicdomain/zero/1.0/
     4 -->
     5 <!DOCTYPE html>
     6 <style>
     7 html, body { margin: 0 }
     8 svg, div { display: inline-block; width: 700px; height: 200px }
     9 div { font: 16px sans-serif }
    10 #a { margin-left: -700px; vertical-align: 100px }
    11 #b { margin-left: -700px; vertical-align: 50px }
    12 span { margin-left: 100px }
    13 </style>
    14 <body>
    15   <svg></svg><div id=a><span>hello</span></div><div id=b><span>there</span></div>
    16   <script>
    17     var span = document.getElementsByTagName("span");
    18     var range = document.createRange();
    19     range.setStart(span[0].firstChild, 1);
    20     range.setEnd(span[1].firstChild, 4);
    21     window.getSelection().addRange(range);
    22   </script>
    23 </body>

mercurial