Closed Bug 1150308 Opened 10 years ago Closed 10 years ago

[Shadow DOM] :active state does not reach into parent shadow dom from normal content node

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla40
Tracking Status
firefox40 --- fixed

People

(Reporter: mikehenrty, Assigned: wchen)

Details

Attachments

(2 files)

Attached file [HTML page] test case (deleted) —
Attached test case. In the test case there is a blue box, which is the shadow host. Inside that box is a shadow DOM box with a black border. Clicking on the shadow DOM box will trigger it's :active state, which turns it green. Inside the shadow DOM box, there is a non-shadow span with a text node saying "Text". The bug is that when clicking on the text, the active state of the shadow DOM box will not get triggered. It seems that the active state is not reaching into the shadow DOM from the content node.
William, can you help a brother out?
Flags: needinfo?(wchen)
So the issue here is similar to bug 1145910, except that instead of failing to propagate event state from shadow DOM to the light DOM, we don't propagate the state from light DOM into the shadow root where the nodes are distributed. The first case is actually specified (shadow DOM -> light DOM), but the other way is not. It looks like Chrome is propagating the state into the shadow DOM.
Flags: needinfo?(wchen)
Assignee: nobody → wchen
Attachment #8587687 - Flags: review?(bugs)
Attachment #8587687 - Flags: review?(bugs) → review+
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla40
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: