OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <link href="resources/flexbox.css" rel="stylesheet"> | 3 <link href="resources/flexbox.css" rel="stylesheet"> |
4 <style> | 4 <style> |
5 .container::first-letter { line-height: 100px; } | 5 .container::first-letter { line-height: 100px; } |
6 .flexbox::first-letter { line-height: 200px; } | 6 .flexboxFirstLetter::first-letter { line-height: 200px; } |
7 p { line-height: 20px; } | 7 p { line-height: 20px; } |
8 </style> | 8 </style> |
9 | 9 |
10 <script src="../../resources/check-layout.js"></script> | 10 <script src="../../resources/check-layout.js"></script> |
11 <body onload="checkLayout('.flexbox')"> | 11 <body onload="checkLayout('.flexbox')"> |
12 <p>This test flex item should ignore container's firstLetter pseudo element.</p> | 12 <p>This test flex item should ignore container's firstLetter pseudo element.</p> |
13 | 13 |
14 <div class="container"> | 14 <div class="container"> |
| 15 <div class="flexbox flexboxFirstLetter"> |
| 16 <p data-expected-height=20>The first item.</p> |
| 17 <p data-expected-height=20>The second item.</p> |
| 18 </div> |
| 19 </div> |
| 20 |
| 21 <div class="container"> |
15 <div class="flexbox"> | 22 <div class="flexbox"> |
16 <p data-expected-height=20>The first item.</p> | 23 <p data-expected-height=20>The first item.</p> |
17 <p data-expected-height=20>The second item.</p> | 24 <p data-expected-height=20>The second item.</p> |
18 </div> | 25 </div> |
19 </div> | 26 </div> |
20 </body> | 27 </body> |
21 </html> | 28 </html> |
OLD | NEW |