tor-browser

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

attr-in-slotted.html (535B)


      1 <!DOCTYPE html>
      2 <title>CSS Values Test: attr() in pseudo element ::slotted</title>
      3 <link rel="help" href="https://drafts.csswg.org/css-values/#attr-notation">
      4 <link rel="match" href="attr-in-slotted-ref.html">
      5 <div class=host>
      6    <template shadowrootmode=open>
      7        <style>
      8            ::slotted(div) {
      9                color: red;
     10                color: attr(data-color type(<color>), yellow);
     11            }
     12        </style>
     13        <slot data-color=blue></slot>
     14    </template>
     15    <div data-color=green>PASS if green</div>
     16 </div>