tor-browser

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

scroll-button-activation-without-scroller.html (991B)


      1 <!doctype html>
      2 <meta charset="utf-8">
      3 <title>CSS Test: ::scroll-button() activation without scroller shouldn't crash</title>
      4 <link rel="help" href="https://drafts.csswg.org/css-overflow-5/#scroll-buttons">
      5 <script src="/resources/testharness.js"></script>
      6 <script src="/resources/testharnessreport.js"></script>
      7 <script src="/resources/testdriver.js"></script>
      8 <script src="/resources/testdriver-actions.js"></script>
      9 <script src="/resources/testdriver-vendor.js"></script>
     10 <style>
     11 div::scroll-button(inline-start) {
     12  content: "";
     13  height: 100px;
     14  width: 100px;
     15 }
     16 </style>
     17 <div></div>
     18 <script>
     19  promise_test(async t => {
     20    await new test_driver.Actions()
     21      .pointerMove(50, 50)
     22      .pointerDown()
     23      .pointerUp()
     24      .pointerDown()
     25      .pointerUp()
     26      .send();
     27    const kTab = '\uE004';
     28    const kEnter = '\uE007';
     29    await new test_driver.Actions()
     30      .keyDown(kTab)
     31      .keyUp(kTab)
     32      .keyDown(kEnter)
     33      .keyUp(kEnter)
     34      .send();
     35  });
     36 </script>