tor-browser

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

display-contents-first-letter-002.html (726B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Display: display:contents and ::first-letter inheritance</title>
      4 <link rel="author" title="Rune Lillesveen" href="mailto:futhark@chromium.org">
      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-letter-pseudo">
      7 <link rel="match" href="display-contents-pass-green-no-red-ref.html">
      8 <style>
      9  div { color: red }
     10  div::first-letter { background: transparent /* To trigger first-letter pseudo element */ }
     11  span { color: green; display: contents; background-color: red }
     12 </style>
     13 <p>You should see the word PASS in green and no red below.</p>
     14 <div><span>PASS</span></div>