tor-browser

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

pseudo-class-defined-print.html (428B)


      1 <!doctype html>
      2 <link rel="match" href="pseudo-class-defined-print-ref.html">
      3 <style>
      4  :root {
      5    print-color-adjust: exact;
      6  }
      7  custom-element {
      8    display: block;
      9    width: 100px;
     10    height: 100px;
     11    background: green;
     12  }
     13  custom-element:not(:defined) {
     14    background: red;
     15  }
     16 </style>
     17 <custom-element></custom-element>
     18 <script>
     19  customElements.define("custom-element", class extends HTMLElement { });
     20 </script>