Bug 111231 - Button whose shadow has only text node won't respond to clicks on text
Summary: Button whose shadow has only text node won't respond to clicks on text
Status: RESOLVED DUPLICATE of bug 191694
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.8
: P2 Normal
Assignee: Web Components Team
URL: http://jsfiddle.net/Jan_Miksovsky/suxve/
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-01 16:00 PST by Jan Miksovsky
Modified: 2018-11-15 14:19 PST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Miksovsky 2013-03-01 16:00:01 PST
The example at http://jsfiddle.net/Jan_Miksovsky/suxve/ shows two buttons with shadow roots:

1. The first button's shadow contains a text node only. Clicks on this button's text have no effect, although if one is careful to click in the button's padding (outside the text, inside the borders), the button does respond.
2. The second button is built the same way, but it's shadow places the text inside a <div>. This button is clickable everywhere as expected.

Is button #1's behavior expected? As someone building a custom button, I found this behavior surprising.
Comment 1 Jan Miksovsky 2018-11-15 09:16:23 PST
This bug is ancient, and I think in any event it was a duplicate of https://bugs.webkit.org/show_bug.cgi?id=111231.
Comment 2 Ryosuke Niwa 2018-11-15 14:19:01 PST
Reverse-duping this bug per Jan's email.

*** This bug has been marked as a duplicate of bug 191694 ***