tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

grid-first-line-002.html (994B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Grid Layout Test: '::first-line' from 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-formatted-line" title="7.1.1. First formatted line definition in CSS">
      7 <link rel="match" href="../reference/grid-text-green-margin-no-collapse-ref.html">
      8 <meta name="assert" content="This test checks that '::first-line' pseudo-element is ignored in grid items when applied to a grid container ancestors.">
      9 <style>
     10  .grid {
     11    display: grid;
     12    color: green;
     13  }
     14 
     15  body::first-line {
     16    color: red;
     17  }
     18 </style>
     19 <div class="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>