You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Let BOTTOM the shadow DOM subtree, with which these shadow root style sheets are associated
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.
Title: [Shadow]: We need comment about "scope" for shadow reference combinator. (bugzilla: 19685)
Migrated from: https://www.w3.org/Bugs/Public/show_bug.cgi?id=19685
comment: 0
comment_url: https://www.w3.org/Bugs/Public/show_bug.cgi?id=19685#c0
Takashi Sakamoto wrote on 2012-10-24 04:12:04 +0000.
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:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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.
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?
The text was updated successfully, but these errors were encountered: