summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/css-generated-content/before-with-first-letter.html
blob: 4a22623470e8c86a4d153da212034915db8b1f59 (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
<html>
<head>
    <style>
        div:first-letter { font-size: larger; color: green; }
        div:before { content: "The "; }
    </style>
    <script>
        function test()
        {
            document.body.offsetTop;
            document.getElementById('target').style.fontSize = '24px';
        }
    </script>
</head>
<body onload="test()">
    <p>
        Test for <i><a href="http://bugs.webkit.org/show_bug.cgi?id=14221">http://bugs.webkit.org/show_bug.cgi?id=14221</a>
        Repro crash (ASSERTION FAILED: oldText in LayoutBlockFlow::updateFirstLetter() during relayout of :before content with first-letter style)</i>.
    </p>
    <div id="target">
        first letter is green and larger than the rest.
    </div>
</body>
</html>