blob: ec2b887e1f34359a476055fc7496b5959ce09a30 [file] [log] [blame]
<style>
.spanStyle { float: inherit; }
.inlineFL::first-letter { visibility: visible; }
.floatFL { float: right; }
.floatFL::first-letter { position: absolute; content: 'A'; }
</style>
PASS, if no exception or crash observed
<script>
parentDiv = document.createElement('div');
childSpan = document.createElement('span');
childDiv = document.createElement('div');
textNode = document.createTextNode('bcd');
function removeTextNode() {
parentDiv.removeChild(textNode);
delete textNode;
if (window.layoutTestController)
layoutTestController.notifyDone();
}
function changeClass() {
parentDiv.setAttribute('class', 'inlineFL');
setTimeout("removeTextNode()", 10);
}
function runTest() {
parentDiv.setAttribute('class', 'floatFL');
document.documentElement.appendChild(parentDiv);
childSpan = document.createElement('span');
childSpan.setAttribute('class', 'spanStyle');
parentDiv.appendChild(childSpan);
parentDiv.appendChild(textNode);
childSpan.appendChild(childDiv);
setTimeout("changeClass()", 10);
if (window.layoutTestController) {
layoutTestController.waitUntilDone();
layoutTestController.dumpAsText();
}
}
window.onload = runTest;
</script>