2 .inlineFL::first-letter { overflow: visible; }
3 .absolutePosition { position: absolute; }
4 .floatFL:first-letter { float: right; }
7 function recreateFirstLetterBlock() {
8 document
.getElementById("parent").setAttribute('class', 'inlineFL');
10 testRunner
.notifyDone();
12 function removeDiv() {
13 // This causes the parent to only have inline (and floating) children
14 document
.getElementById("parent").removeChild(document
.getElementById("child"));
15 setTimeout("recreateFirstLetterBlock();", 10);
18 function changeDivStyle() {
19 document
.getElementById("child").setAttribute('class', 'inlineFL');
20 setTimeout("removeDiv();", 10);
22 function startTest() {
23 setTimeout("changeDivStyle();", 10);
24 if (window
.testRunner
) {
25 testRunner
.waitUntilDone();
26 testRunner
.dumpAsText();
29 window
.onload
= startTest
;
31 <div id=
"parent" class=
"floatFL">
32 <div id=
"child" class=
"absolutePosition"></div>
33 PASS if no crash or assert