Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / first-letter-inline-flow-split-table-crash.html
blob2807d0e980bee899b51e1a23ddc9363cf1307e89
1 <style>
2 .noFloat:empty { float: none; }
3 .theadStyle:nth-last-child(odd) { display: table-header-group; float: right; }
4 .pSpanStyle { overflow: hidden; -webkit-appearance: button; }
5 .pSpanStyle:first-letter { text-align: -webkit-left; content: counter(section); }
6 </style>
7 <script>
8 var parentSpan = document.createElement('span');
9 var childSpan = document.createElement('span');
10 var thead = document.createElement('thead');
11 var textNode = document.createTextNode('abc');
13 function removeTextNode() {
14 childSpan.removeChild(textNode);
15 delete textNode;
16 if (window.testRunner)
17 testRunner.notifyDone();
20 function changeClass() {
21 thead.setAttribute('class', 'noFloat');
22 setTimeout("removeTable()", 10);
25 function removeTable() {
26 childSpan.removeChild(thead);
27 setTimeout('removeTextNode();', 10);
30 function runTest() {
31 parentSpan.setAttribute('class', 'pSpanStyle');
32 document.documentElement.appendChild(parentSpan);
33 childSpan.setAttribute('class', 'noFloat');
34 parentSpan.appendChild(childSpan);
35 thead.setAttribute('class', 'theadStyle');
36 childSpan.appendChild(thead);
37 childSpan.appendChild(textNode);
38 setTimeout('changeClass();', 10);
40 if (window.testRunner) {
41 testRunner.waitUntilDone();
42 testRunner.dumpAsText();
45 window.onload = runTest;
46 </script>
47 PASS, if no exception or crash in debug