tor-browser

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

focus-unassignable-slot.html (972B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <link rel="author" title="Joey Arhar" href="mailto:jarhar@chromium.org">
      4 <link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1209217">
      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-vendor.js"></script>
      9 <script src="/resources/testdriver-actions.js"></script>
     10 <script src="resources/shadow-dom.js"></script>
     11 <script src="resources/focus-utils.js"></script>
     12 
     13 <slot>
     14  <input id=input1>
     15 </slot>
     16 <slot>
     17  <input id=input2>
     18 </slot>
     19 
     20 <script>
     21 promise_test(async () => {
     22  input1.focus();
     23  assert_equals(document.activeElement, input1);
     24 
     25  await navigateFocusForward();
     26  assert_equals(document.activeElement, input2);
     27 }, `Verifies that focusing forwards from an input inside a slot which has no shadow root goes to the next focusable element in light DOM.`);
     28 </script>