Open Bug 1945989 Opened 1 months ago

CSS display:contents breaks clickAncestor action (AKA CSS display:contents prevents details element from toggling in NVDA browse mode)

Categories

(Core :: Disability Access APIs, defect)

defect

Tracking

()

People

(Reporter: Jamie, Unassigned)

References

(Blocks 1 open bug)

Details

STR (with NVDA):

  1. Open this test case:
    data:text/html,<details><summary><h3 style="display: contents;">summary</summary>details</details>
  2. Press control+home.
    • Observe: NVDA says: "button collapsed heading level 3 summary"
  3. Press enter.
    • Expected: NVDA says: "expanded"
    • Actual: Nothing happens.

NVDA tries to perform the default action on the deepest non-text leaf Accessible. In this case, that's the h3, which is display: contents. The h3 does expose the "clickAncestor" action. However, that fails to click the ancestor.

display: contents elements don't have layout frames and thus don't have bounds. I suspect one or both of these is what is causing trouble here.

You need to log in before you can comment on or make changes to this bug.