Bug 258180

Summary: AX: Some single character elements with pseudo-selector ::first-letter cause unexpected behavior with VoiceOver
Product: WebKit Reporter: gr3g
Component: AccessibilityAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: andresg_22, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 16   
Hardware: Mac (Apple Silicon)   
OS: macOS 13   
Attachments:
Description Flags
A list of HTML elements that are impacted by this issue none

Description gr3g 2023-06-15 17:23:48 PDT
Created attachment 466714 [details]
A list of HTML elements that are impacted by this issue

Report comes from user anecdote: https://front-end.social/@yatil@yatil.social/110547945063364074

When an element containing only one character has the ::first-letter selector applied, we get unexpected behavior with CSS and with Accessibility. 

For some elements, the item is not seen by AT such as VoiceOver. For other elements, the css is not applied (in this example, text-transform:capitalize).
Comment 1 Radar WebKit Bug Importer 2023-06-15 17:23:59 PDT
<rdar://problem/110870063>