Bug 111231
Summary: | Button whose shadow has only text node won't respond to clicks on text | ||
---|---|---|---|
Product: | WebKit | Reporter: | Jan Miksovsky <jan> |
Component: | New Bugs | Assignee: | Web Components Team <webcomponents-bugzilla> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Normal | CC: | jan, rniwa, webcomponents-bugzilla |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | Mac | ||
OS: | OS X 10.8 | ||
URL: | http://jsfiddle.net/Jan_Miksovsky/suxve/ |
Jan Miksovsky
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.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Jan Miksovsky
This bug is ancient, and I think in any event it was a duplicate of https://bugs.webkit.org/show_bug.cgi?id=111231.
Ryosuke Niwa
Reverse-duping this bug per Jan's email.
*** This bug has been marked as a duplicate of bug 191694 ***