[WebComponents] Implement :host pseudo class

NEW
Unassigned

Status

()

Core
DOM
P3
normal
3 years ago
27 days ago

People

(Reporter: vingtetun, Unassigned)

Tracking

(Blocks: 2 bugs, {dev-doc-needed})

Trunk
dev-doc-needed
Points:
---
Dependency tree / graph

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)

Updated

3 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
Created attachment 8579159 [details] [diff] [review]
Part 1: Allow psuedo class to be optionally functional.
Assignee: nobody → wchen
Created attachment 8579160 [details] [diff] [review]
Part 2: Implement :host pseudo class matching.
Created attachment 8579161 [details] [diff] [review]
tests
These patch builds on top of things in bug 1082060, so that bug needs to be sorted out first.
Keywords: dev-doc-needed
Do we still need this with Shadow DOM v1?
Assignee: wchen → nobody
Blocks: 1205323
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.