Closed Bug 1674194 Opened 2 years ago Closed 2 years ago

Tables with aria roles on cells or rows should be layout tables

Categories

(Core :: Disability Access APIs, defect, P1)

defect

Tracking

()

RESOLVED FIXED
84 Branch
Tracking Status
firefox84 --- fixed

People

(Reporter: eeejay, Assigned: eeejay)

References

(Blocks 1 open bug)

Details

(Whiteboard: [mac2020_2])

Attachments

(1 file)

Gmail has a catagory tab list that looks roughly like this:

<table>
  <tr role="tablist">
    <td role="heading" aria-level="3">
      <div tabindex="0" role="tab" aria-selected="true">Primary</div>
    </td>

    <td role="heading" aria-level="3">
      <div tabindex="0" role="tab" aria-selected="false">Promotions</div>
    </td>

    <td role="heading" aria-level="3">
      <div tabindex="0" role="tab" aria-selected="false">Forums</div>
    </td>
  <tr>
    <td colspan="5">
      <div></div>
    </td>
  </tr>
</table>

While this table is clearly used for layout purposes, our IsProbablyLayoutTable implementation does not detect it to be so because of the plurality of cells and their distinct styling. I think we need to add a heuristic there that returns true if cell or row elements are being assigned an aria role that is not table related.

Priority: -- → P1
Whiteboard: [mac2020_2]
Pushed by eisaacson@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/c1d158fe6028
If cell or row has aria role, make it a layout table. r=Jamie
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 84 Branch
You need to log in before you can comment on or make changes to this bug.