summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/css-generated-content/first-letter-table-cell-format-block-crash.html
blob: 5c9f8c2bfb91066f6e25bc8acbf3a79a871e0187 (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
35
36
37
38
39
40
<!DOCTYPE html>
<html>
<style>
#test0 {
    -webkit-column-count:2;
    display: table-cell;
}
#test0::first-letter {
    background-size: auto;
}
#test1 {
    float: right;
}
</style>
<script>
    onload = function() {
        test0=document.createElement('div');
        test0.setAttribute('id', 'test0');
        document.body.appendChild(test0);
        test1=document.createElement('div');
        test1.setAttribute('id', 'test1');
        test0.appendChild(test1);
        test0.appendChild(document.createTextNode(unescape('%u3200A')));
        document.designMode = 'on';
        window.getSelection().setBaseAndExtent(test1, 0, test1, 0);
        document.execCommand('InsertLineBreak');
        document.execCommand('selectall');
        document.execCommand('strikethrough');
        document.execCommand('FormatBlock', false, '<'+'pre>');

        document.body.offsetTop;
        document.body.innerHTML = "PASS, if no crash or assert in debug build."

        if (window.testRunner)
            testRunner.dumpAsText();
    }
</script>
<body>
</body>
</html>