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 23061 - [Shadow]: Should be able to override ::content styles in shadow root style sheet from the document
Summary: [Shadow]: Should be able to override ::content styles in shadow root style sh...
Status: RESOLVED FIXED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: HISTORICAL - Component Model (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Hayato Ito
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 23062
  Show dependency treegraph
 
Reported: 2013-08-26 02:29 UTC by Takashi Sakamoto
Modified: 2014-05-29 08:30 UTC (History)
1 user (show)

See Also:


Attachments

Description Takashi Sakamoto 2013-08-26 02:29:05 UTC
Suppose that we have a ::content style rule(rule1) in a shadow tree and that the rule matches a child of a shadow host which hosts the shadow tree.

We also have some rule (rule2) declared in document and the rule matches the child of a shadow host. 

So,
- If rule2 has the same or higher specificity than rule1, rule2 wins.
- Otherwise, rule1 wins.

e.g. http://jsbin.com/obazat/1/edit

This requirement comes from http://crbug.com/274059
Comment 1 Hayato Ito 2014-05-29 08:30:55 UTC
I think css-scoping spec should have address that.