grid-inline-first-letter-002.html (1021B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Grid Layout Test: '::first-letter' from inline grid container ancestors does not apply to grid items</title> 4 <link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com"> 5 <link rel="help" href="http://www.w3.org/TR/css-grid-1/#grid-containers" title="3.1 Establishing Grid Containers"> 6 <link rel="help" href="http://www.w3.org/TR/css3-selectors/#first-letter" title="7.2. The ::first-letter pseudo-element"> 7 <link rel="match" href="../reference/grid-text-green-margin-no-collapse-ref.html"> 8 <meta name="assert" content="This test checks that '::first-letter' pseudo-element is ignored in grid items when applied to an inline grid container ancestors."> 9 <style> 10 .inline-grid { 11 display: inline-grid; 12 color: green; 13 } 14 15 body::first-letter { 16 color: red; 17 } 18 </style> 19 <div class="inline-grid"> 20 <div> 21 <p>This text should be <strong>green</strong> and body and paragraph margins should <strong>not collapse</strong>.</p> 22 </div> 23 </div>