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 22240 - [Shadow]: Clarify how nested @host @-rules work
Summary: [Shadow]: Clarify how nested @host @-rules work
Status: RESOLVED INVALID
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: HISTORICAL - Component Model (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Dimitri Glazkov
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 14978
  Show dependency treegraph
 
Reported: 2013-06-03 05:55 UTC by Takashi Sakamoto
Modified: 2013-07-17 22:31 UTC (History)
0 users

See Also:


Attachments

Description Takashi Sakamoto 2013-06-03 05:55:15 UTC
Because of https://www.w3.org/Bugs/Public/show_bug.cgi?id=21242, we can write nested @host @-rules. However it would be better to clarify how nested @host @-rules work.

For example, suppose that we have the following tree:

<hostA>
   #shadow-root
      <hostB>
         #shadow-root
            <style>
            @host { @host { * { border: 1px solid green; } } }
            </style>
            ....

So how should the above nested @host @-rules work?

I think, at least, we have four options:

(a) The above nested @host @-rules should be applied to hostA,

(b) The above nested @host @-rules should be disallowed. So treat as "@host { * { border: 1px solid green; }". hostB should have 1px solid green border.

(c) The above nested @host @-rules should be disallowed. Ignore.

(d) Other options...

I would like to know which would be the best option.
Comment 1 Dimitri Glazkov 2013-07-17 22:31:17 UTC
@host is dead.