layout/base/tests/bug966992-3-ref.html

branch
TOR_BUG_9701
changeset 15
b8a032363ba2
equal deleted inserted replaced
-1:000000000000 0:531cefb4bae1
1 <!DOCTYPE HTML>
2 <html><head>
3 <meta charset="utf-8">
4 <title>Testcases for overflow-clip-box:content-box</title>
5 <style type="text/css">
6 html,body {
7 color:black; background-color:white; font:16px monospace; padding:0; margin:7px;
8 }
9 div {
10 width: 100px; padding-right:50px; overflow-clip-box:padding-box;
11 overflow:hidden;
12 }
13 .rel { position:relative; }
14 .mask5 { position:absolute; height:40px; background:white; top:3px; left:0px; width:50px; }
15 </style>
16 </head>
17 <body>
18
19 <div contenteditable=true spellcheck=false tabindex=0 id=x class="block"><span style="padding-right:50px">XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</span></div>
20
21 <script>
22 var x = document.getElementById('x');
23 x.focus();
24 x.scrollLeft=100000
25 window.getSelection().collapse(x,1);
26 </script>
27 </body>
28 </html>

mercurial