RESOLVED DUPLICATE of bug 181516 Bug 173026
Can't focus fields hidden with CSS
https://bugs.webkit.org/show_bug.cgi?id=173026
Summary Can't focus fields hidden with CSS
Chad Ostrowski
Reported 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.
Attachments
Alexey Proskuryakov
Comment 1 2017-06-06 17:12:10 PDT
Does this affect any live web sites?
Chad Ostrowski
Comment 2 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.
Jon Lee
Comment 3 2017-08-14 23:06:34 PDT
We disagree with Chrome and Firefox here.
Radar WebKit Bug Importer
Comment 4 2017-08-14 23:06:56 PDT
Ryosuke Niwa
Comment 5 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 ***
Note You need to log in before you can comment on or make changes to this bug.