| <!DOCTYPE html> |
| <html> |
| <link href="resources/grid.css" rel="stylesheet"> |
| <style> |
| body { line-height: 20px; } |
| .grid-first-line::first-line { line-height: 100px; } |
| .container::first-line { line-height: 200px; } |
| </style> |
| |
| <script src="../../resources/check-layout.js"></script> |
| <body onload="checkLayout('.grid-first-line');"> |
| <p>This test grid item should ignore grid container's first-line pseudo-element.</p> |
| |
| <div class="grid grid-first-line"> |
| <div class="item" data-expected-height=20>The first item.</div> |
| <div class="item" data-expected-height=20>The second item.</div> |
| </div> |
| |
| <div class="inline-grid grid-first-line"> |
| <div class="item" data-expected-height=20>The first item.</div> |
| <div class="item" data-expected-height=20>The second item.</div> |
| </div> |
| |
| <div class="grid grid-first-line" data-expected-height=20> |
| Anonymous item. |
| </div> |
| |
| <div class="inline-grid grid-first-line" data-expected-height=20> |
| Anonymous item. |
| </div> |
| |
| <div class="container"> |
| <div class="grid grid-first-line"> |
| <div class="item" data-expected-height=20>The first item.</div> |
| <div class="item" data-expected-height=20>The second item.</div> |
| </div> |
| </div> |
| |
| <div class="container"> |
| <div class="inline-grid grid-first-line"> |
| <div class="item" data-expected-height=20>The first item.</div> |
| <div class="item" data-expected-height=20>The second item.</div> |
| </div> |
| </div> |
| |
| <div class="container"> |
| <div class="grid grid-first-line" data-expected-height=20> |
| Anonymous item. |
| </div> |
| </div> |
| |
| <div class="container"> |
| <div class="inline-grid grid-first-line" data-expected-height=20> |
| Anonymous item. |
| </div> |
| </div> |
| |
| </body> |
| </html> |