[Webkit-unassigned] [Bug 216418] New: visibility: hidden does not remove focus
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Sep 11 13:30:32 PDT 2020
https://bugs.webkit.org/show_bug.cgi?id=216418
Bug ID: 216418
Summary: visibility: hidden does not remove focus
Product: WebKit
Version: Safari Technology Preview
Hardware: Macintosh
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: New Bugs
Assignee: webkit-unassigned at lists.webkit.org
Reporter: timdream at gmail.com
Created attachment 408558
--> https://bugs.webkit.org/attachment.cgi?id=408558&action=review
testcase
STR:
See test case, the page will
0. check the current focused element by looking at `document.activeElement`.
1. focus() the element
2. set visibility: hidden on the element
3. wait for 100ms
4. check the current focused element by looking at `document.activeElement` again.
Expected:
On Chrome on step 4, the focused element is the body
Actual:
On Safari and Firefox, the focused element is still the element.
Note:
1. The inconsistency suggests that there may be a spec issue here.
2. On Chrome sometime a micro task is enough for the focus to moved away, some times it is not.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200911/cf895be3/attachment.htm>
More information about the webkit-unassigned
mailing list