Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / lists / item-not-in-list-line-wrapping.html
blob9bb336c6457d6caf7629ca3b9238bb6213d0f668
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;
28 if (window.testRunner)
29 testRunner.dumpAsText();
30 </script>
31 </body>
32 </html>