3 <link href=
"resources/grid.css" rel=
"stylesheet">
5 body { line-height:
20px; }
6 .grid-first-letter::first-letter { line-height:
100px; color: red; }
7 .container-first-letter::first-letter { line-height:
200px; color: green; }
10 <script src=
"../../resources/check-layout.js"></script>
11 <body onload=
"checkLayout('.container');">
12 <p>This test grid item should ignore grid container's first-letter pseudo-element.
</p>
14 <div class=
"container">
15 <div class=
"grid grid-first-letter">
16 <div class=
"item" data-expected-height=
20>The first item.
</div>
17 <div class=
"item" data-expected-height=
20>The second item.
</div>
21 <div class=
"container">
22 <div class=
"inline-grid grid-first-letter">
23 <div class=
"item" data-expected-height=
20>The first item.
</div>
24 <div class=
"item" data-expected-height=
20>The second item.
</div>
28 <div class=
"container">
29 <div class=
"grid grid-first-letter" data-expected-height=
20>
34 <div class=
"container">
35 <div class=
"inline-grid grid-first-letter" data-expected-height=
20>
40 <div class=
"container container-first-letter">
41 <div class=
"grid grid-first-letter">
42 <div class=
"item" data-expected-height=
20>The first item.
</div>
43 <div class=
"item" data-expected-height=
20>The second item.
</div>
45 <div data-expected-height=
200>Out of grid.
</div>
48 <div class=
"container container-first-letter">
49 <div class=
"inline-grid grid-first-letter">
50 <div class=
"item" data-expected-height=
20>The first item.
</div>
51 <div class=
"item" data-expected-height=
20>The second item.
</div>
53 <div data-expected-height=
20>Out of grid.
</div>
56 <div class=
"container container-first-letter">
57 <div class=
"grid grid-first-letter" data-expected-height=
20>
60 <div data-expected-height=
200>Out of grid.
</div>
63 <div class=
"container container-first-letter">
64 <div class=
"inline-grid grid-first-letter" data-expected-height=
20>
67 <div data-expected-height=
20>Out of grid.
</div>
70 <div class=
"container container-first-letter">
72 <div class=
"item" data-expected-height=
20>The first item.
</div>
73 <div class=
"item" data-expected-height=
20>The second item.
</div>
75 <div data-expected-height=
200>Out of grid.
</div>
78 <div class=
"container container-first-letter">
79 <div class=
"inline-grid">
80 <div class=
"item" data-expected-height=
20>The first item.
</div>
81 <div class=
"item" data-expected-height=
20>The second item.
</div>
83 <div data-expected-height=
20>Out of grid.
</div>
86 <div class=
"container container-first-letter">
87 <div class=
"grid" data-expected-height=
20>
90 <div data-expected-height=
200>Out of grid.
</div>
93 <div class=
"container container-first-letter">
94 <div class=
"inline-grid" data-expected-height=
20>
97 <div data-expected-height=
20>Out of grid.
</div>