[Webkit-unassigned] [Bug 76321] New: Link broken when changing the placement of text within a link

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jan 13 16:56:27 PST 2012


https://bugs.webkit.org/show_bug.cgi?id=76321

           Summary: Link broken when changing the placement of text within
                    a link
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh Intel
               URL: http://jsfiddle.net/UWGZE/4/
        OS/Version: Mac OS X 10.7
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: Event Handling
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: benjitastic at gmail.com


Click does not register when text placement is changed on :active with CSS.

http://jsfiddle.net/UWGZE/4/

In the example above the number to the right of the link should increment by one with each click. If you click directly on the text (or even below) you will see that the number does not increment and no click event gets fired. It is as if the click event never registered. This happens any time the text within an anchor element changes position on :active. This bug can also be recreated by shifting the text placement vertically with line-height instead of padding.

This is not a javascript issue. In the following barebones example there is no JS and clicking DIRECTLY on the text (not just the surrounding green area) will not direct the browser to the href destination. It's as if the click event never registered (even though the :active state is clearly firing): http://jsfiddle.net/UWGZE/5/

This example is exaggerated but this is a serious issue since often developers/designers will alter the line-height or padding of a button link to shift the text slightly on :active.

-- 
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