Bug 215579

Summary: webkit-search-cancel-button not keyboard accessible
Product: WebKit Reporter: Robert Jolly <jolly.robert>
Component: AccessibilityAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: aidan.feldman, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 13   
Hardware: Mac   
OS: macOS 10.14   
Attachments:
Description Flags
screenshot of webkit pseudo element in search to clear input value. none

Description Robert Jolly 2020-08-17 12:53:41 PDT
Created attachment 406735 [details]
screenshot of webkit pseudo element in search to clear input value.

The -webkit-search-cancel-button appears for sighted users, but it is unavailable for screen reader users and sighted, keyboard-only users. 

This presents a default in the browser which fails WCAG 2.1.1 Keyboard (Level A). See: https://www.w3.org/WAI/WCAG21/Understanding/keyboard.html and the Sufficient Technique G202 https://www.w3.org/WAI/WCAG21/Techniques/general/G202 and Failure F54 https://www.w3.org/WAI/WCAG21/Techniques/failures/F54. 

Developers who want to comply with WCAG need to override this webkit default, which is problematic, as defaults may be incorrectly assumed to be accessible. 

Recommendation:
Remove the pseudo element from search controls OR make the element fully accessible.
Comment 1 Radar WebKit Bug Importer 2020-08-17 12:53:50 PDT
<rdar://problem/67265076>