Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / block / float / float-not-removed-from-first-letter.html
blobe18a317178e61ed8a93774eafb89212af4aa9036
1 <!DOCTYPE html>
2 <html>
3 Webkit Bug 86019 - Crash due to floats not removed from first-letter element.
4 <style>
5 .li2 { width: 0px; }
6 .li2:first-letter { float: left; content: counter(section); }
7 .li2:first-of-type { display: -webkit-inline-flexbox; }
8 </style>
9 <script>
10 if (window.testRunner)
11 testRunner.dumpAsText();
13 function crash() {
14 li1 = document.createElement('li');
15 document.documentElement.appendChild(li1);
16 keygen1 = document.createElement('keygen');
17 keygen1.setAttribute('autofocus', 'autofocus');
18 document.documentElement.appendChild(keygen1);
19 li2 = document.createElement('li');
20 li2.setAttribute('class', 'li2');
21 document.documentElement.appendChild(li2);
22 text1 = document.createTextNode("PASS. WebKit didn't crash.");
23 li2.appendChild(text1);
25 window.onload = crash;
26 </script>
27 </html>