tor-browser

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

scroll-button-universal-before.html (629B)


      1 <!DOCTYPE html>
      2 <title>CSS Overflow Test: ::scroll-button(*) style should not apply to ::before</title>
      3 <link rel="help" href="https://drafts.csswg.org/css-overflow-5/#scroll-buttons">
      4 <script src="/resources/testharness.js"></script>
      5 <script src="/resources/testharnessreport.js"></script>
      6 <style>
      7  #target::before {
      8    color: green;
      9    content: " ";
     10  }
     11  #target::scroll-button(*) {
     12    color: red;
     13  }
     14 </style>
     15 <div id="target"></div>
     16 <script>
     17  test(() => {
     18    assert_equals(getComputedStyle(target, "::before").color, "rgb(0, 128, 0)");
     19  }, "::before should not pick up style from ::scroll-button(*) rule");
     20 </script>