[WK2] selection does not disappear after coping the text
[framework/web/webkit-efl.git] / LayoutTests / fast / text / whitespace / pre-wrap-overflow-selection.html
1 <html>
2 <head>
3 <title>Pre-Wrap Test Page</title>
4 <script type="text/javascript">
5 function test()
6 {
7     var t = document.getElementById('t1').childNodes[0];
8     var u = document.getElementById('t2').childNodes[0];
9     window.getSelection().setBaseAndExtent(u, 7, t, 15);
10 }
11 </script>
12 </head>
13 <body onload="test()">
14 <p>
15 This test checks for a regression against
16 <i><a href="https://bugs.webkit.org/show_bug.cgi?id=5619">http://bugzilla.opendarwin.org/show_bug.cgi?id=5619</a>
17 CSS2: pre-wrap has overflow/selection problems</i>.
18 </p>
19 <p>
20 Both boxes should not have scroll bars. The selection should
21 not spill out of the blue box to the right of &ldquo;text&rdquo;.
22 </p>
23 <hr>
24 <pre id="t2" wrap style="overflow:auto; border:4px solid brown; width:100px">
25 This   text     will wrap
26 and   fit   within the
27 box.
28 </pre>
29 <hr>
30 <pre id="t1" wrap style="border:4px solid blue; width:100px">
31 This   text     will wrap
32 and   fit   within the
33 box.
34 </pre>
35 </body>
36 </html>