layout/reftests/bugs/503399-ref.html

Wed, 31 Dec 2014 07:16:47 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:16:47 +0100
branch
TOR_BUG_9701
changeset 3
141e0f1194b1
permissions
-rw-r--r--

Revert simplistic fix pending revisit of Mozilla integration attempt.

     1 <!DOCTYPE HTML>
     2 <html class="reftest-wait"><head>
     3     <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
     4     <title>Testcase for bug 503399</title>
     5     <style type="text/css">
     7         html,body {
     8             color:black; background-color:white; font-size:16px;
     9             font-family: monospace;
    10         }
    11 	p {
    12             max-width:180px;
    13             height: 1em;
    14             overflow:hidden;
    15         }
    16     </style>
    17     <script>
    18       var done = false;
    19       function runTest(p) {
    20         if (done)
    21           return;
    22         try {
    23           var r = window.getSelection().getRangeAt(0);
    24           r.setStart(p.childNodes[1],1);
    25           r.setEnd(p.childNodes[1],1);
    26         } catch (e) {}
    27         document.documentElement.removeAttribute('class');
    28         done = true;
    29       }
    30     </script>
    31 </head>
    32 <body onload="var p = document.getElementsByTagName('p')[0]; p.focus(); setTimeout(function(){runTest(p)},1000)">
    34 <p onfocus="runTest(this)" contentEditable="true"
    35    style="text-align:justify"><span>&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;</span>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;</p>
    37 </body>
    38 </html>

mercurial