summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/css-generated-content/inline-splitting-with-after-float-crash.html
blob: 14d79980afcc290631e9db94dac416a4561d5a2f (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
<style>
    .c2:after { float: left; content: "A"; }
</style>
PASS, if the script does not cause a crash or ASSERT failure
<script>
    function endTest(childSpan) {
        childSpan.appendChild(divToInsert);
        if (window.testRunner)
            testRunner.notifyDone();
    }
    function startTest() {
        quoteNode = document.createElement('q');
        document.documentElement.appendChild(quoteNode);
        divToInsert = document.createElement('div');
        parentSpan = document.createElement('span');
        parentSpan.setAttribute('class', 'c2');
        childSpan = document.createElement('span');
        parentSpan.appendChild(childSpan);
        document.documentElement.appendChild(parentSpan);
        setTimeout('endTest(childSpan);', 50);
        if (window.testRunner) {
            testRunner.waitUntilDone();
            testRunner.dumpAsText();
        }
    }
    window.onload = startTest;
</script>