tor-browser

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

role-img.tentative.html (1637B)


      1 <!doctype html>
      2 <html>
      3 <head>
      4  <title>SVG-AAM Image 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 <p>Currently tentative due to <a href="https://github.com/w3c/svg-aam/issues/32">SVG-AAM #32: SVG image role should align with HTML on missing versus empty alt</a>.</p>
     16 
     17 <!-- [sic] included here b/c the spec says unlabeled, unrendered images are generic, but the spec may be wrong. -->
     18 <!-- Once https://github.com/w3c/svg-aam/issues/32 is resolved, this test can be moved to another file or have `.tentative` removed. -->
     19 <image data-testname="el-image (empty label due to missing image>title element)" data-expectedrole="image" data-expectedlabel="" class="ex-role-label"></image>
     20 
     21 <!-- Additional tests -->
     22 <image data-testname="el-image (label from w/ aria-label)" aria-label="x" data-expectedrole="image" data-expectedlabel="x" class="ex-role-label"></image>
     23 <image data-testname="el-image (label from image>title element)" data-expectedrole="image" data-expectedlabel="x" class="ex-role-label"><title>x</title></image>
     24 <image data-testname="el-image (generic, explicitly empty image>title element)" class="ex-generic"><title></title></image>
     25 
     26 <script>
     27 AriaUtils.verifyRolesAndLabelsBySelector(".ex-role-label");
     28 AriaUtils.verifyGenericRolesBySelector(".ex-generic");
     29 </script>
     30 
     31 </body>
     32 </html>