tor-browser

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

display-contents-before-after-002.html (781B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Display: Generated ::before and ::after with display:contents</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="match" href="display-contents-pass-ref.html">
      7 <style>
      8    /* Disable kerning because kerning may differ for different node tree. */
      9    html { font-kerning: none; font-feature-settings: "kern" off; }
     10    div::before {
     11        display: contents;
     12        border: 100px solid red;
     13        content: "P"
     14    }
     15    div::after {
     16        display: contents;
     17        border: 100px solid red;
     18        content: "S"
     19    }
     20 </style>
     21 <p>You should see the word PASS below.</p>
     22 <div>A<span>S</span></div>