[WebComponents] Implement :host pseudo class

NEW
Assigned to

Status

()

Core
DOM
3 years ago
4 months ago

People

(Reporter: vingtetun, Assigned: wchen)

Tracking

(Blocks: 1 bug, {dev-doc-needed})

Trunk
dev-doc-needed
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(URL)

Attachments

(3 attachments)

Just looking at some tutos in both Chrome and Firefox and it seems like the :host rule demo at http://www.html5rocks.com/en/tutorials/webcomponents/shadowdom-201/#toc-style-host does not work as expected in Firefox.

(This is with dom.webcomponents.enabled = true).
I'm mostly concerned about the ability to react to user states. Fwiw the first demo seems to not work in Firefox, while the second demo (related to handling user state, does not seems to work in both Firefox nor Chrome 35 on my laptop)
(Assignee)

Updated

2 years ago
Summary: [WebComponents] :host rule does not seems to work in http://www.html5rocks.com/en/tutorials/webcomponents/shadowdom-201/#toc-style-host → [WebComponents] Implement :host pseudo class
(Assignee)

Comment 2

2 years ago
Created attachment 8579159 [details] [diff] [review]
Part 1: Allow psuedo class to be optionally functional.
Assignee: nobody → wchen
(Assignee)

Comment 3

2 years ago
Created attachment 8579160 [details] [diff] [review]
Part 2: Implement :host pseudo class matching.
(Assignee)

Comment 4

2 years ago
Created attachment 8579161 [details] [diff] [review]
tests
(Assignee)

Comment 5

2 years ago
These patch builds on top of things in bug 1082060, so that bug needs to be sorted out first.
Keywords: dev-doc-needed
You need to log in before you can comment on or make changes to this bug.