Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / first-letter-inline-flow-split-crash.html
blob2f106970489bf93df47a78c2c37f6041e675e2f2
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');
14 function removeTextNode() {
15 parentDiv.removeChild(textNode);
16 delete textNode;
17 if (window.testRunner)
18 testRunner.notifyDone();
21 function changeClass() {
22 parentDiv.setAttribute('class', 'inlineFL');
23 setTimeout("removeTextNode()", 10);
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();
40 window.onload = runTest;
41 </script>