[webkit-changes] [WebKit/WebKit] 629fc5: Add Interaction Regions for aria roles button & me...

EWS noreply at github.com
Thu Mar 2 03:21:50 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 629fc5bf5089d0f3abe8237401ecdd940a250a32
      https://github.com/WebKit/WebKit/commit/629fc5bf5089d0f3abe8237401ecdd940a250a32
  Author: Etienne Segonzac <sgz at apple.com>
  Date:   2023-03-02 (Thu, 02 Mar 2023)

  Changed paths:
    A LayoutTests/interaction-region/aria-roles-expected.txt
    A LayoutTests/interaction-region/aria-roles.html
    M Source/WebCore/page/InteractionRegion.cpp

  Log Message:
  -----------
  Add Interaction Regions for aria roles button & menuitem
https://bugs.webkit.org/show_bug.cgi?id=253189
<rdar://103095071>

Reviewed by Tim Horton.

Allow non `pointer:cursor` elements with the aria roles `button` and
`menuitem` to get Interaction Regions.

* Source/WebCore/page/InteractionRegion.cpp:
(WebCore::shouldAllowNonPointerCursorForElement):
Get the role attribute value from the element to see if it should get an
Interaction Region even without `pointer: cursor`.

* LayoutTests/interaction-region/aria-roles-expected.txt: Added.
* LayoutTests/interaction-region/aria-roles.html: Added.
Add a test covering these rules.

Canonical link: https://commits.webkit.org/261059@main




More information about the webkit-changes mailing list