Bug 173026
Summary: | Can't focus fields hidden with CSS | ||
---|---|---|---|
Product: | WebKit | Reporter: | Chad Ostrowski <hi> |
Component: | Forms | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Minor | CC: | ap, cdumez, jonlee, kling, rniwa, webkit-bug-importer, wenson_hsieh, zalan |
Priority: | P2 | Keywords: | InRadar |
Version: | Safari 10 | ||
Hardware: | Mac | ||
OS: | macOS 10.12 |
Chad Ostrowski
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 | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Alexey Proskuryakov
Does this affect any live web sites?
Chad Ostrowski
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
We disagree with Chrome and Firefox here.
Radar WebKit Bug Importer
<rdar://problem/33891085>
Ryosuke Niwa
Fixed in https://trac.webkit.org/changeset/226823
*** This bug has been marked as a duplicate of bug 181516 ***