- From: <bugzilla@jessica.w3.org>
- Date: Wed, 24 Oct 2012 04:12:04 +0000
- To: public-webapps-bugzilla@w3.org
- Message-ID: <bug-19685-2532@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=19685
Priority: P2
Bug ID: 19685
Assignee: dglazkov@chromium.org
Summary: [Shadow]: We need comment about "scope" for shadow
reference combinator.
QA Contact: public-webapps-bugzilla@w3.org
Severity: normal
Classification: Unclassified
OS: All
Reporter: tasak@google.com
Hardware: PC
Status: NEW
Version: unspecified
Component: Component Model
Product: WebAppsWG
The rule applicability algorithm in styles 7 works well to know whether some
rule is applicable in the given TREE or not.
However, I think, we need some comments like:
- if RULE contains a select reference combinator and RULE is declared in shadow
root style sheets:
1. Let BOTTOM the shadow DOM subtree, with which these shadow root style
sheets are associated
2. If the shadow host of BOTTOM is in TREE, then RULE is applicable in TREE's
children of shadow host whose shadow root has the shadow root style.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The reason why I need the comment is:
Suppose that there are two divs in document tree. Each div has its own shadow
dom subtree and shadow root stylesheets.
<div id="host1">
<#shadow-root>
<style>
content /select/ div.special { color: red; }
</style>
<content>
</#shadow-root>
<div class="special">Comment 1</div>
</div>
<div id="host2">
<#shadow-root>
<content>
</#shadow-root>
<div class="special">Comment 2</div>
</div>
So looking at the shadow dom spec, the host1's
<style>
content /select/ div.special { color: red; }
</style>
is applicable in DOCUMENT tree. So "Comment 2" would be red colored?
--
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Wednesday, 24 October 2012 04:12:06 UTC