Bug 173026 - Can't focus fields hidden with CSS
Summary: Can't focus fields hidden with CSS
Status: RESOLVED DUPLICATE of bug 181516
Alias: None
Product: WebKit
Classification: Unclassified
Component: Forms (show other bugs)
Version: Safari 10
Hardware: Mac macOS 10.12
: P2 Minor
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2017-06-06 12:08 PDT by Chad Ostrowski
Modified: 2018-02-19 21:37 PST (History)
8 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chad Ostrowski 2017-06-06 12:08:39 PDT
See example in https://codepen.io/chadoh/pen/gWyBzV

Safari tries to be smart and not allow users to focus a field that wouldn't be usable.

The problem is that fields can be focused by clicking on their label or tabbing into them, and either CSS `:focus` styles or JS may make the field usable upon such an action.
Comment 1 Alexey Proskuryakov 2017-06-06 17:12:10 PDT
Does this affect any live web sites?
Comment 2 Chad Ostrowski 2017-08-13 17:40:13 PDT
I have not crawled the internet to check, but probably? It was affecting a website I built, until customers reported a bug, and I tracked down the issue to this bug in Safari.
Comment 3 Jon Lee 2017-08-14 23:06:34 PDT
We disagree with Chrome and Firefox here.
Comment 4 Radar WebKit Bug Importer 2017-08-14 23:06:56 PDT
<rdar://problem/33891085>
Comment 5 Ryosuke Niwa 2018-02-19 21:37:21 PST
Fixed in https://trac.webkit.org/changeset/226823

*** This bug has been marked as a duplicate of bug 181516 ***