upload webkit/tizen 2.0_beta source.
[framework/web/webkit-efl.git] / LayoutTests / fast / lists / item-not-in-list-line-wrapping.html
1 <html>
2 <head>
3     <title></title>
4 </head>
5 <body>
6     <p>
7         Test for <i><a href="http://bugs.webkit.org/show_bug.cgi?id=12746">http://bugs.webkit.org/show_bug.cgi?id=12746</a>
8         REGRESSION (r13853): List item's first line overflows containing div</i>.
9     </p>
10     <p>
11         Text should not overflow the yellow box.
12     </p>
13     <div style="background-color:yellow; width: 125px;">
14         <li><span id="text">
15             Lorem ipsum dolor sit amet
16         </span></li>
17     </div>
18     <div id="result">
19     </div>
20     <script>
21         var result = document.getElementById("result");
22         var text = document.getElementById("text");
23         if (text.offsetWidth <= 125)
24             result.innerHTML = "PASS";
25         else
26             result.innerHTML = "FAILED: text.offsetWidth=" + text.offsetWidth;
27
28         if (window.layoutTestController)
29             layoutTestController.dumpAsText();
30     </script>
31 </body>
32 </html>