[Webkit-unassigned] [Bug 259487] New: AX: Unstyled lists with multiple children have list semantics removed

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jul 25 10:28:39 PDT 2023


https://bugs.webkit.org/show_bug.cgi?id=259487

            Bug ID: 259487
           Summary: AX: Unstyled lists with multiple children have list
                    semantics removed
           Product: WebKit
           Version: Safari 16
          Hardware: All
                OS: macOS 13
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Accessibility
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: kodiane at gmail.com
                CC: andresg_22 at apple.com,
                    webkit-bug-importer at group.apple.com

WebKit removes the semantics of lists whenever the list styling is removed. In a tweet from James Craig (https://twitter.com/cookiecrook/status/1084142936583892992), the heuristics for a list are defined in AccessibilityList.cpp (https://github.com/WebKit/webkit/blob/main/Source/WebCore/accessibility/AccessibilityList.cpp#L137-L143):
1. If it's a named list, like ol or aria=list, then it's a list.
  1a. Unless the list has no children, then it's not a list.
2. If it displays visible list markers, it's a list.
3. If it does not display list markers and has only one child, it's not a list.
4. If it does not have any listitem children, it's not a list.
5. Otherwise it's a list (for now).

This would imply from the heuristics that an unstyled list that has more than one child should be considered a list. However, in the actual code logic, this isn't the case.

It seems like either the heuristics in the code comment are incorrect or the logic to match those heuristics is incorrect. As I generally agree with the heuristics in the code comment, it would be great to have the code match the written heuristics. Thanks!

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230725/b2c98d9d/attachment.htm>


More information about the webkit-unassigned mailing list