| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/x
html1/DTD/xhtml1-strict.dtd"> |
| 2 <html xmlns="http://www.w3.org/1999/xhtml"> |
| 3 <head> |
| 4 <title>CSS Grid Layout Test: '::first-line' from grid container does not
apply to grid items</title> |
| 5 <link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igal
ia.com" /> |
| 6 <link rel="help" href="http://www.w3.org/TR/css-grid-1/#grid-containers"
title="3.1 Establishing Grid Containers" /> |
| 7 <link rel="help" href="http://www.w3.org/TR/css3-selectors/#first-format
ted-line" title="7.1.1. First formatted line definition in CSS" /> |
| 8 <link rel="match" href="../reference/grid-text-green-margin-no-collapse-
ref.xht" /> |
| 9 <meta name="assert" content="This test checks that '::first-line' pseudo
-element is ignored in grid items when applied to a grid container." /> |
| 10 <style type="text/css"><![CDATA[ |
| 11 .grid { |
| 12 display: grid; |
| 13 color: green; |
| 14 } |
| 15 |
| 16 .grid::first-line { |
| 17 color: red; |
| 18 } |
| 19 ]]></style> |
| 20 </head> |
| 21 <body> |
| 22 <div class="grid"> |
| 23 <div> |
| 24 <p>This text should be <strong>green</strong> and body and parag
raph margins should <strong>not collapse</strong>.</p> |
| 25 </div> |
| 26 </div> |
| 27 </body> |
| 28 </html> |
| OLD | NEW |