[Webkit-unassigned] [Bug 226918] New: AX: CSS list-style influences role/semantics

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jun 11 06:00:06 PDT 2021


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

            Bug ID: 226918
           Summary: AX: CSS list-style influences role/semantics
           Product: WebKit
           Version: Safari 14
          Hardware: iPhone / iPad
                OS: iOS 14
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Accessibility
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: jeff.smith at intopia.digital
                CC: webkit-bug-importer at group.apple.com

When a UL element is provided with "list-style: none" in CSS, the semantics of the UL element are removed. The UL is not announced as a list by VoiceOver, it's announced as a group of text.

Example: https://codepen.io/jeffsmith/pen/oNZPXGz

Three UL elements are provided in this example:

* The first is a standard UL with no CSS styling.
* The second is a standard UL, with a class added to provide "list-style: none" styling for the list.
* The third is similar to the second, with the explicit role="list" added to the UL element.

The first list is announced as expected, the second and third are announced as a group of text. Presentational elements (CSS) should not be in a position to be influencing the semantics of HTML and how a screen reader announces those semantics.

-- 
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/20210611/390c8223/attachment.htm>


More information about the webkit-unassigned mailing list