OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <link href="resources/grid.css" rel="stylesheet"> | 3 <link href="resources/grid.css" rel="stylesheet"> |
4 <style> | 4 <style> |
5 body { line-height: 20px; } | 5 body { line-height: 20px; } |
6 .grid-first-letter::first-letter { line-height: 100px; color: red; } | 6 .grid-first-letter::first-letter { line-height: 100px; color: red; } |
7 .container::first-letter { line-height: 200px; color: green; } | 7 .container::first-letter { line-height: 200px; color: green; } |
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('.grid-first-letter');"> | 11 <body onload="checkLayout('.grid,.inline-grid');"> |
12 <p>This test grid item should ignore grid container's first-letter pseudo-elemen
t.</p> | 12 <p>This test grid item should ignore grid container's first-letter pseudo-elemen
t.</p> |
13 | 13 |
14 <div class="grid grid-first-letter"> | 14 <div class="grid grid-first-letter"> |
15 <div class="item" data-expected-height=20>The first item.</div> | 15 <div class="item" data-expected-height=20>The first item.</div> |
16 <div class="item" data-expected-height=20>The second item.</div> | 16 <div class="item" data-expected-height=20>The second item.</div> |
17 </div> | 17 </div> |
18 | 18 |
19 <div class="inline-grid grid-first-letter"> | 19 <div class="inline-grid grid-first-letter"> |
20 <div class="item" data-expected-height=20>The first item.</div> | 20 <div class="item" data-expected-height=20>The first item.</div> |
21 <div class="item" data-expected-height=20>The second item.</div> | 21 <div class="item" data-expected-height=20>The second item.</div> |
(...skipping 26 matching lines...) Expand all Loading... |
48 Anonymous item. | 48 Anonymous item. |
49 </div> | 49 </div> |
50 </div> | 50 </div> |
51 | 51 |
52 <div class="container"> | 52 <div class="container"> |
53 <div class="inline-grid grid-first-letter" data-expected-height=20> | 53 <div class="inline-grid grid-first-letter" data-expected-height=20> |
54 Anonymous item. | 54 Anonymous item. |
55 </div> | 55 </div> |
56 </div> | 56 </div> |
57 | 57 |
| 58 <div class="container"> |
| 59 <div class="grid"> |
| 60 <div class="item" data-expected-height=20>The first item.</div> |
| 61 <div class="item" data-expected-height=20>The second item.</div> |
| 62 </div> |
| 63 </div> |
| 64 |
| 65 <div class="container"> |
| 66 <div class="inline-grid"> |
| 67 <div class="item" data-expected-height=20>The first item.</div> |
| 68 <div class="item" data-expected-height=20>The second item.</div> |
| 69 </div> |
| 70 </div> |
| 71 |
| 72 <div class="container"> |
| 73 <div class="grid" data-expected-height=20> |
| 74 Anonymous item. |
| 75 </div> |
| 76 </div> |
| 77 |
| 78 <div class="container"> |
| 79 <div class="inline-grid" data-expected-height=20> |
| 80 Anonymous item. |
| 81 </div> |
| 82 </div> |
| 83 |
58 </body> | 84 </body> |
59 </html> | 85 </html> |
OLD | NEW |