2 .spanStyle { float: inherit; }
3 .inlineFL::first-letter { visibility: visible; }
4 .floatFL { float: right; }
5 .floatFL::first-letter { position: absolute; content: 'A'; }
7 PASS, if no exception or crash observed
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
);
17 if (window
.testRunner
)
18 testRunner
.notifyDone();
21 function changeClass() {
22 parentDiv
.setAttribute('class', 'inlineFL');
23 setTimeout("removeTextNode()", 10);
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
;