Closed Bug 422295 Opened 17 years ago Closed 6 months ago

CSS :focus{overflow:hidden} breaks click event handling on input elements

Categories

(Core :: DOM: Events, defect, P5)

defect

Tracking

()

RESOLVED FIXED

People

(Reporter: pooya, Unassigned)

References

()

Details

(Whiteboard: DUPEME)

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12 Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-US; rv:1.9b5pre) Gecko/2008031104 Minefield/3.0b5pre A text input element that has the following style :focus {overflow: hidden} ignores the first click event. Test case will follow. Reproducible: Always
Attached file testcase
Originally I noticed this behavior when tried to add click handlers to text boxes on SourceForge registration page: http://sourceforge.net/account/registration/ I narrowed it down to the this attached test case.
This is a duplicate. The focus style triggers a frame reconstruct on mousedown, so mouseup and mousedown are on different objects, and you don't get the click event fired at that node. We have other bugs filed for this sort of situation.
Whiteboard: DUPEME
I know about these two similar bugs: bug 393226 and bug 42676 but couldn't find the more generic one about the way frame reconstruction is done.
Looks like duplicate of bug 493416
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046 Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5. If you have questions, please contact :mdaly.
Priority: -- → P5
Severity: normal → S3
Status: UNCONFIRMED → RESOLVED
Closed: 6 months ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: