:focus-visible lands in WebKit through Igalia's Open Prioritization

Manuel Rego Casasnovas has posted an update on WebKit's support for :focus-visible. The work came out of Igalia's Open Prioritization, an effort to crowd-source funding for web platform features that need attention: the proposal attracting the most pledged dollars gets implemented, and :focus-visible support in WebKit (Safari) was the winner. At the time of writing, pledges stood at $29,337.13 against a $35,000 goal.

The choice was made in January 2021, and by June the work was essentially complete — the feature shipped in Safari Technology Preview 125 and is now in Apple's hands. That is quick turnaround for a web feature, and a valuable one: proper support should encourage real focus styles instead of the common practice of stripping them for aesthetic reasons, which harms accessibility.

There was a side benefit too. According to the update, the WPT test suite has been improved and now counts roughly 40 tests for the feature. And while in January neither Firefox nor Chrome used :focus-visible in their UA style sheets, both do today — so the WebKit implementation helped push the feature forward in other places as well.

In addition, the WPT test suite has been improved counting now ~40 tests for this feature. Also in January neither Firefox or Chrome were using :focus-visible on the UA style sheet, however they both use it there nowadays. Thus, doing the implementation on WebKit has helped to move forward this feature on different places.