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

Thu, 15 Jan 2015 15:55:04 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:55:04 +0100
branch
TOR_BUG_9701
changeset 9
a63d609f5ebe
permissions
-rw-r--r--

Back out 97036ab72558 which inappropriately compared turds to third parties.

     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; margin-left: -700px; vertical-align: 100px }
    10 span { margin-left: 100px }
    11 </style>
    12 <body>
    13   <svg></svg><div><span>hello</span></div>
    14   <script>
    15     var span = document.getElementsByTagName("span")[0];
    16     var range = document.createRange();
    17     range.setStart(span.firstChild, 1);
    18     range.setEnd(span.firstChild, 4);
    19     window.getSelection().addRange(range);
    20   </script>
    21 </body>

mercurial