<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: Element with display:none's aria-flowto is not considered"
   href="https://bugs.webkit.org/show_bug.cgi?id=166705">166705</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>AX: Element with display:none's aria-flowto is not considered
          </td>
        </tr>

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

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

        <tr>
          <th>Version</th>
          <td>Safari 10
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>iPhone / iPad
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>iOS 10
          </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>jonathan&#64;tumult.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>webkit-bug-importer&#64;group.apple.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>If there is an aria-flowto chain and one of the elements is set to display:none, it will ignore the subsequent pointers and go by DOM ordering.

Consider the following HTML:

&lt;div id=&quot;item1&quot; role=&quot;img&quot;, aria-flowto=&quot;item2&quot;&gt;  Item 1 (role=img, flowto=item2)&lt;/div&gt;
&lt;div id=&quot;item2&quot; role=&quot;button&quot; aria-flowto=&quot;item5&quot;&gt;  Item 2 (role=button, flowto=item5)&lt;/div&gt;
&lt;div id=&quot;item3&quot; role=&quot;img&quot; aria-flowto=&quot;item6&quot;&gt;  Item 3 (role=img, flowto=item6)&lt;/div&gt;
&lt;div id=&quot;item4&quot; role=&quot;img&quot; aria-flowto=&quot;item3&quot;&gt;  Item 4 (role=img, flowto=item3)&lt;/div&gt;
&lt;div id=&quot;item5&quot; role=&quot;img&quot;   aria-flowto=&quot;item4&quot; style=&quot;display:none&quot;&gt;  Item 5 (role=img, flowto=item4, display:none)&lt;/div&gt;
&lt;div id=&quot;item6&quot; role=&quot;radio&quot;&gt;  Item 6 (role=radio)&lt;/div&gt;

The flowto order would be:

1, 2, 5, 4, 3, 6

However, because item5 has display:none, the actual ordering is:

1, 2, 3, 6

This ordering misses 4, which clearly was meant to be visited.  I would have expected aria-flowto to be considered, and simply jump ahead to the next element so it would look like:

1, 2, 4, 3, 6

This means developers need to be very careful when setting display:none, and tools like Tumult Hype need to take extra care in managing flowto chains.

Interestingly this is different than if aria-hidden=true were on the element (see <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - AX: aria-hidden=&quot;true&quot; is ignored with aria-flowto"
   href="show_bug.cgi?id=166703">https://bugs.webkit.org/show_bug.cgi?id=166703</a>)

I am reproducing on iPad Pro with iOS 10.2.1 via:
1. Enabling VoiceOver
2. Swiping to the right</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>