Bug 190870

Summary: Make scrollable element focusable
Product: WebKit Reporter: Hugo Holgersson <hugo.holgersson>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: boghyon+webkit, cfleizach, eoconnor, jcraig, koivisto, rniwa, webkit-bug-importer, woodlxf00
Priority: P2 Keywords: InRadar
Version: Safari 12   
Hardware: All   
OS: All   

Description Hugo Holgersson 2018-10-24 05:46:22 PDT
We plan to fix this in Chrome, see
https://chromium-review.googlesource.com/c/chromium/src/+/1258331.

Spec discussion: https://github.com/whatwg/html/issues/2851.

Expected: Scrollable divs have tabIndex=0 and can be focused using sequential navigation.

Actual: Scrollable divs have tabIndex=-1 and cannot be focused using sequential navigation.
Comment 1 Radar WebKit Bug Importer 2018-10-24 05:46:51 PDT
<rdar://problem/45517980>
Comment 2 Ryosuke Niwa 2019-10-01 14:10:16 PDT
Making scrollable element focusable might be good for UX but it has a major implementation challenge, which is that this would require computing the up-to-date style for an element to decide whether a given element is focusable or not.

We're actively tying to avoid updating the style to decide focusability of an element, and this goes directly against that goal.