Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Shadow]: We need comment about "scope" for shadow reference combinator. (bugzilla: 19685) #248

Closed
hayatoito opened this issue Jul 6, 2015 · 1 comment

Comments

@hayatoito
Copy link
Contributor

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:

  • 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.

<#shadow-root> <style> content /select/ div.special { color: red; } </style>
Comment 1
<#shadow-root>
Comment 2

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?

@hayatoito
Copy link
Contributor Author

Let me close this bug since this looks obsolete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant