tor-browser

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

display-contents-first-line-001.html (702B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Display: display:contents and ::first-line</title>
      4 <link rel="author" title="Rune Lillesveen" href="mailto:rune@opera.com">
      5 <link rel="help" href="https://drafts.csswg.org/css-display-3/#valdef-display-contents">
      6 <link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#first-line-pseudo">
      7 <link rel="match" href="display-contents-pass-green-no-red-ref.html">
      8 <style>
      9    #contents { display: contents }
     10    #contents::first-line { background-color: red }
     11    #container::first-line { color: green }
     12 </style>
     13 <p>You should see the word PASS in green and no red below.</p>
     14 <div id="container">
     15    <div id="contents"><span>P</span>ASS</div>
     16 </div>