comp_tooltip.html (5541B)
1 <!doctype html> 2 <html> 3 <head> 4 <title>Name Comp: Tooltip</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 <p>Tests the <a href="https://w3c.github.io/accname/#comp_tooltip">#comp_tooltip</a> portions of the AccName <em>Name Computation</em> algorithm.</p> 15 16 <a href="#" title="title" data-expectedlabel="title" data-testname="link with img with tooltip label" class="ex"><img alt="" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="></a> 17 <a href="#" title="title" data-expectedlabel="title" data-testname="link with text with tooltip label and no contents" class="ex"></a> 18 <a href="#" title="title" data-expectedlabel="contents" data-testname="link with text with tooltip label and contents" class="ex">contents</a> 19 <div title="title" role="group" data-expectedlabel="title" data-testname="div with text with tooltip label" class="ex">contents</div><!-- Note: group role disallows nameFrom:contents --> 20 <img title="title" data-expectedlabel="title" data-testname="img with tooltip label without alt" class="ex" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="> 21 <img title="title" data-expectedlabel="alt" alt="alt" data-testname="img with tooltip label with alt" class="ex" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="> 22 <img data-expectedlabel="alt" alt="alt" data-testname="img with tooltip label without title" class="ex" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="> 23 24 <select title="title" data-expectedlabel="title" data-testname="select with tooltip label" class="ex"> 25 <option value="" disabled selected>select options</option> 26 <option value="1">option 1</option> 27 <option value="2">option 2</option> 28 <option value="3">option 3</option> 29 </select> 30 31 32 <!-- TODO: Move these: https://github.com/web-platform-tests/interop-accessibility/issues/78 --> 33 <button title="title" data-expectedlabel="contents" data-testname="button with tooltip label" class="ex">contents</button> 34 <input type="checkbox" title="title" data-expectedlabel="title" data-testname="checkbox input with tooltip label" class="ex"> 35 <input type="radio" title="title" data-expectedlabel="title" data-testname="radio input with tooltip label" class="ex"> 36 37 <!-- TODO: Move these: https://github.com/web-platform-tests/interop-accessibility/issues/78 --> 38 <!-- https://w3c.github.io/html-aam/#input-type-text-input-type-password-input-type-number-input-type-search-input-type-tel-input-type-email-input-type-url-and-textarea-element-accessible-name-computation --> 39 <input type="text" title="title" data-expectedlabel="title" placeholder="placeholder" data-testname="text input with placeholder and tooltip label" class="ex"> 40 <input type="password" title="title" data-expectedlabel="title" placeholder="placeholder" data-testname="password input with placeholder and tooltip label" class="ex"> 41 <input type="number" title="title" data-expectedlabel="title" placeholder="placeholder" data-testname="number input with placeholder and tooltip label" class="ex"> 42 <input type="search" title="title" data-expectedlabel="title" placeholder="placeholder" data-testname="search input with placeholder and tooltip label" class="ex"> 43 <input type="tel" title="title" data-expectedlabel="title" placeholder="placeholder" data-testname="tel input with placeholder and tooltip label" class="ex"> 44 <input type="email" title="title" data-expectedlabel="title" placeholder="placeholder" data-testname="email input with placeholder and tooltip label" class="ex"> 45 <input type="url" title="title" data-expectedlabel="title" placeholder="placeholder" data-testname="url input with placeholder and tooltip label" class="ex"> 46 <textarea title="title" data-expectedlabel="title" placeholder="placeholder" data-testname="textarea with placeholder and tooltip label" class="ex"></textarea> 47 48 <!-- TODO: Move these: https://github.com/web-platform-tests/interop-accessibility/issues/78 --> 49 <!-- https://w3c.github.io/html-aam/#text-level-element-accessible-name-computation --> 50 <abbr title="Web Platform Tests" data-expectedlabel="Web Platform Tests" data-testname="abbr with tooltip label" class="ex">WPT</abbr> 51 <!-- kbd test disabled: see resolution at https://github.com/web-platform-tests/interop-accessibility/issues/131 --> 52 <!-- <kbd title="Control + Option" data-expectedlabel="Control + Option" data-testname="kbd with tooltip label" class="ex">CTRL + OPT</kbd> --> 53 54 <!-- TODO: Move these: https://github.com/web-platform-tests/interop-accessibility/issues/78 --> 55 <!-- https://w3c.github.io/html-aam/#summary-element-accessible-name-computation --> 56 <details> 57 <summary title="title" data-expectedlabel="contents" data-testname="summary with tooltip label and contents" class="ex">contents</summary> 58 details 59 </details> 60 61 <!-- TODO: Move these: https://github.com/web-platform-tests/interop-accessibility/issues/78 --> 62 <!-- https://w3c.github.io/html-aam/#iframe-element-accessible-name-computation --> 63 <iframe title="title" data-expectedlabel="title" data-testname="iframe with tooltip label" width="20px" height="20px" class="ex"></iframe> 64 65 <script> 66 AriaUtils.verifyLabelsBySelector(".ex"); 67 </script> 68 </body> 69 </html>