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