summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/pagination/first-letter-inherit-all-crash.html
blob: b23b65ad6241a511ad11b8e303d0d13848215796 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!DOCTYPE html>
<style>
    #elm { overflow-y:-webkit-paged-y; }

    /* Need to float the first letter, to turn it into a block. Otherwise, overflow-y wouldn't be
       an applicable property in the first place. */
    #elm::first-letter { all:inherit; float:left; }
</style>
<p>overflow-y isn't a valid property for ::first-letter. We'd crash when extracting innerText,
    because the implementation expects that the first letter text is a direct child of the
    ::first-letter pseudo object. The paged overflow / multicol implementation would violate this
    assumption by inserting a flow thread object between the ::first-letter pseudo object and the
    actual text.</p>
<p>PASS if no crash or assertion failure.</p>
<div id="elm">x</div>
<script>
    if (window.testRunner)
        testRunner.dumpAsText();
    document.getElementById("elm").innerText;
</script>