Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css-generated-content / before-with-first-letter.html
blob4a22623470e8c86a4d153da212034915db8b1f59
1 <html>
2 <head>
3 <style>
4 div:first-letter { font-size: larger; color: green; }
5 div:before { content: "The "; }
6 </style>
7 <script>
8 function test()
10 document.body.offsetTop;
11 document.getElementById('target').style.fontSize = '24px';
13 </script>
14 </head>
15 <body onload="test()">
16 <p>
17 Test for <i><a href="http://bugs.webkit.org/show_bug.cgi?id=14221">http://bugs.webkit.org/show_bug.cgi?id=14221</a>
18 Repro crash (ASSERTION FAILED: oldText in LayoutBlockFlow::updateFirstLetter() during relayout of :before content with first-letter style)</i>.
19 </p>
20 <div id="target">
21 first letter is green and larger than the rest.
22 </div>
23 </body>
24 </html>