This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 24316 - [Shadow]: implement :ancestor and change :host behavior
Summary: [Shadow]: implement :ancestor and change :host behavior
Status: RESOLVED FIXED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: HISTORICAL - Component Model (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Hayato Ito
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 22715
  Show dependency treegraph
 
Reported: 2014-01-17 05:03 UTC by Takashi Sakamoto
Modified: 2014-05-29 07:17 UTC (History)
4 users (show)

See Also:


Attachments

Description Takashi Sakamoto 2014-01-17 05:03:17 UTC
:host is often used with :host, e.g.

:host(div:host), :host(.foobar:host) and so on.

So it would be better to change :host's parameter to match only shadow hosts.

Instead, implement :ancestor (we need better name for this pseudo class) to have the same behavior as old :host.
Comment 1 Takashi Sakamoto 2014-01-17 05:04:59 UTC
Currently we have the following idea about "better name" for :ancestor,

(1) :shadow-ancestor,
(2) :host-ancestor
Comment 2 Anne 2014-01-17 11:18:31 UTC
Does :ancestor not match self? Because that is named "inclusive ancestor" in the DOM... (I don't know what :host used to match, sorry.)
Comment 3 Hayato Ito 2014-05-29 07:17:40 UTC
This should have been addressed in css-scoping spec. Let me close.