tor-browser

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

slotted-file-selector-button.html (609B)


      1 <!doctype html>
      2 <meta charset="utf-8">
      3 <title>CSS Scoping Test: ::slotted() allows ::file-selector-button</title>
      4 <link rel="author" title="Tim Nguyen" href="https://github.com/nt1m">
      5 <link rel="help" href="https://drafts.csswg.org/css-scoping/#slotted-pseudo">
      6 <link rel="match" href="slotted-file-selector-button-ref.html">
      7 <p>Test passes if ::file-selector-button has green text.</p>
      8 <div id="host">
      9  <input type="file">
     10 </div>
     11 <script>
     12  host.attachShadow({ mode: "open" }).innerHTML = `
     13    <style>
     14      ::slotted(*)::file-selector-button { color: green }
     15    </style>
     16    <slot></slot>
     17  `;
     18 </script>