comp_label.html (1796B)
1 <!doctype html> 2 <html> 3 <head> 4 <title>Name Comp: Label</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 <h1>SVG-AAM: Label Tests</h1> 15 16 <p>Tests SVG-specific aria-label rules in <a href="https://w3c.github.io/svg-aam/#mapping_additional_nd">SVG-AAM §8.1 Name and Description</a>, but note the open issues in <a href="https://github.com/w3c/svg-aam/issues/31">SVG-AAM #31</a>. 17 18 <h2>SVG a[aria-label]</h2> 19 <svg viewbox="0 0 300 100"> 20 <a href="#" aria-label="Athos" data-expectedlabel="Athos" xlink:title="circle link label" data-testname="[aria-labelledby] > circle" class="ex"><circle cx="26" cy="26" r="25"></circle></a> 21 <a href="#" aria-label="Porthos" data-expectedlabel="Porthos" xlink:title="rect link label" data-testname="[aria-labelledby] > rect" class="ex"><rect x="60" y="1" width="50" height="50"></rect></a> 22 <a href="#" aria-label="Aramis" data-expectedlabel="Aramis" xlink:title="polygon link label" data-testname="[aria-labelledby] > polygon" class="ex"><polygon points="100,100 150,25 150,75 200,0" fill="none" stroke="black"></polygon></a> 23 </svg><br> 24 <svg viewbox="0 0 200 90"> 25 <a href="#" aria-label="D’Artagnan" data-expectedlabel="D’Artagnan" xlink:title="group link label" data-testname="[aria-labelledby] > g" class="ex"> 26 <g fill="white" stroke="green" stroke-width="5"> 27 <circle cx="40" cy="40" r="25" /> 28 <circle cx="60" cy="60" r="25" /> 29 </g> 30 </a> 31 </svg> 32 <br> 33 34 <script> 35 AriaUtils.verifyLabelsBySelector(".ex"); 36 </script> 37 </body> 38 </html>