<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - AX: [ATK] Layout tests related to text alternative computation need to be done differently"
   href="https://bugs.webkit.org/show_bug.cgi?id=157187">157187</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>AX: [ATK] Layout tests related to text alternative computation need to be done differently
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>WebKit
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>WebKit Nightly Build
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P2
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Accessibility
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned&#64;lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>jdiggs&#64;igalia.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>webkit-bug-importer&#64;group.apple.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>The &quot;Accessible Name and Description: Computation and API Mappings 1.1&quot; spec [1] describes how the &quot;name&quot; and &quot;description&quot; are mapped on the various platforms we support [2]. The simplified version of the most-typical [3] cases are:

       Spec            Platform        Layout Test
       ----         --------------    -------------
AXAPI  name         AXDescription     AXDescription
       description  AXHelp            AXHelp
ATK    name         name              AXTitle
       description  description       AXDescription

If that were not confusing enough, even though ATK has no such property or concept of &quot;help text,&quot; WebKitTestRunner exposes descriptions which originate from ATK_RELATION_DESCRIBED_BY though AXHelp as a string (and thus duplicates what is in AXDescription) rather than a list of pointers to elements (which is what the AtkRelation provides).

We have a number of failing tests -- and a number of ATK implementation bugs -- related to this confusion. In the former case, gardeners have filed one bug per failure. We also have at least a few cases where what a cross-platform test should be testing is not actually what it's testing (e.g. testing the spec &quot;name&quot; via &quot;AXDescription&quot;).

The purpose of this bug here is to gather all the failures in a single place, fix the alternative text calculation bugs in ATK, and when appropriate tweak the cross-platform tests to be more cross-platform friendly (e.g. just always dump AXTitle, AXDescription, and AXHelp and have platform-specific expectations).

[1] <a href="https://w3c.github.io/aria/accname-aam/accname-aam.html">https://w3c.github.io/aria/accname-aam/accname-aam.html</a>
[2] <a href="https://w3c.github.io/aria/accname-aam/accname-aam.html#accessible-name-and-description-mapping">https://w3c.github.io/aria/accname-aam/accname-aam.html#accessible-name-and-description-mapping</a>
[3] In some cases in AXAPI, e.g. certain widgets, spec &quot;name&quot; maps to AXTitle</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>