tor-browser

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

tab-roles.tentative.html (1082B)


      1 <!doctype html>
      2 <html>
      3 <head>
      4    <title>Tentative: Tab-related Role Verification Tests</title>
      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="/wai-aria/scripts/aria-utils.js"></script>
     11 </head>
     12 <body>
     13 
     14 <!--
     15  CORE-AAM requires that, for elements with roles not contained in the
     16  required context, user agents must ignore the role token and return the
     17  computed role as if the ignored role token had not been included.
     18  See https://w3c.github.io/core-aam/#roleMappingComputedRole
     19 -->
     20 <button role="tab" data-testname="orphan button with tab role" data-expectedrole="button" class="ex">x</button>
     21 <span role="tab" data-testname="orphan span with tab role" class="ex-generic">x</span>
     22 
     23 <script>
     24    AriaUtils.verifyRolesBySelector(".ex");
     25    AriaUtils.verifyGenericRolesBySelector(".ex-generic");
     26 </script>
     27 
     28 </body>
     29 </html>