Regression(r188105): Seems to have caused crashes during PLT on some iPads
[WebKit-https.git] / LayoutTests / fast / css / first-letter-inline-flow-split-crash.html
1 <style>
2 .spanStyle { float: inherit; }
3 .inlineFL::first-letter { visibility: visible; }
4 .floatFL { float: right; }
5 .floatFL::first-letter { position: absolute; content: 'A'; }
6 </style>
7 PASS, if no exception or crash observed
8 <script>
9 parentDiv = document.createElement('div');
10 childSpan = document.createElement('span');
11 childDiv = document.createElement('div');
12 textNode =  document.createTextNode('bcd');
13
14 function removeTextNode() {
15     parentDiv.removeChild(textNode);
16     delete textNode;
17     if (window.testRunner)
18         testRunner.notifyDone();
19 }
20
21 function changeClass() {
22     parentDiv.setAttribute('class', 'inlineFL');
23     setTimeout("removeTextNode()", 10);
24 }
25
26 function runTest() {
27     parentDiv.setAttribute('class', 'floatFL');
28     document.documentElement.appendChild(parentDiv);
29     childSpan = document.createElement('span');
30     childSpan.setAttribute('class', 'spanStyle');
31     parentDiv.appendChild(childSpan);
32     parentDiv.appendChild(textNode);
33     childSpan.appendChild(childDiv);
34     setTimeout("changeClass()", 10);
35     if (window.testRunner) {
36         testRunner.waitUntilDone();
37         testRunner.dumpAsText();
38     }
39 }
40 window.onload = runTest;
41 </script>