tor-browser

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

grid-inline-first-line-003.html (1014B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Grid Layout Test: '::first-line' works on grid items within an inline grid</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 works as expected if it is applied directly to a grid item within an inline grid.">
      9 <style>
     10  .inline-grid {
     11    display: inline-grid;
     12    color: red;
     13  }
     14 
     15  .item::first-line {
     16    color: green;
     17  }
     18 </style>
     19 <div class="inline-grid">
     20  <p class="item">
     21    This text should be <strong>green</strong> and body and paragraph margins should <strong>not collapse</strong>.
     22  </p>
     23 </div>