tor-browser

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

generated-content-inherit-001.html (815B)


      1 <!doctype html>
      2 <meta charset="utf-8">
      3 <title>CSS Test: ::before and ::after generated with content: inherit</title>
      4 <link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
      5 <link rel="match" href="generated-content-inherit-001-ref.html">
      6 <link rel="help" href="https://drafts.csswg.org/css-pseudo/#generated-content">
      7 <meta name="flags" content="">
      8 <meta name="assert" content="Tests that pseudo-elements are properly generated with content: inherit">
      9 <!--
     10  TODO(emilio): upstream this to WPT once
     11  https://github.com/w3c/csswg-drafts/issues/1757 is resolved
     12 -->
     13 <style>
     14 .first::before, .second::after {
     15  content: inherit;
     16 }
     17 </style>
     18 <p>Test passes if you see two PASS lines below:</p>
     19 <div class="first" style="content: 'PA'">SS</div>
     20 <div class="second" style="content: 'SS'">PA</div>