[Webkit-unassigned] [Bug 85380] New: Switching focus to an element with CSS display: none iOS crashes Mobile Safari
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed May 2 09:07:23 PDT 2012
https://bugs.webkit.org/show_bug.cgi?id=85380
Summary: Switching focus to an element with CSS display: none
iOS crashes Mobile Safari
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Unspecified
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: CSS
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: chuck at jumis.com
By using CSS selectors we can set adjacent or child elements to display when an item is hovered over or focused.
Such as
<button>Content <span onclick="1;">popup</span></button>
span {
display: none; position: absolute; top: -3em;
}
button:focus, button:hover span {
display: block;
}
The technique seems to crash Mobile Safari when tapping on the child element. On the desktop, it works fine and the element stays displayed. It seems on Mobile Safari that the button loses focus, causing the child to become display: none before receiving focus, then immediately crashes the browser.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list