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.

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

mercurial