gecko/layout/reftests/bugs/503399.html

39 lines
1.1 KiB
HTML
Raw Normal View History

2010-02-08 16:21:54 -08:00
<!DOCTYPE HTML>
<html class="reftest-wait"><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Testcase for bug 503399</title>
<style type="text/css">
html,body {
color:black; background-color:white; font-size:16px;
font-family: monospace;
2010-02-08 16:21:54 -08:00
}
p {
max-width:180px;
2010-02-08 16:21:54 -08:00
height: 1em;
overflow:hidden;
}
</style>
<script>
var done = false;
2010-02-08 16:21:54 -08:00
function runTest(p) {
if (done)
return;
2010-02-08 16:21:54 -08:00
try {
var r = window.getSelection().getRangeAt(0);
r.setStart(p.childNodes[0],14);
r.setEnd(p.childNodes[0],14);
} catch (e) {}
document.documentElement.removeAttribute('class');
done = true;
2010-02-08 16:21:54 -08:00
}
</script>
</head>
<body onload="var p = document.getElementsByTagName('p')[0]; p.focus(); setTimeout(function(){runTest(p)},1000)">
2010-02-08 16:21:54 -08:00
<p onfocus="runTest(this)" contentEditable="true"
style="text-align:justify">&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;</p>
2010-02-08 16:21:54 -08:00
</body>
</html>