[Bug 21390] [Shadow]: add support for styling shadowDOM contents based on host element

https://www.w3.org/Bugs/Public/show_bug.cgi?id=21390

Takashi Sakamoto <tasak@google.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tasak@google.com

--- Comment #1 from Takashi Sakamoto <tasak@google.com> ---
I would like to confirm how ::shadow works. 

(In reply to comment #0)

> @host {  
>   /* match .foo shadowDOM children inside host elements matching .bar */
>   .bar::shadow(:root > .foo) {
>     ...
>   }
> }

Since "match .foo shadowDOM children inside host elements matching .bar",
".bar::shadow(:root > .foo)" doesn't match a host element whose class is bar
and whose shadow root has any direct child whose class is foo.

So, if we write the followings, what elements should the followings match?

@host {  
  .bar::shadow(:root > .foo) > div {
     ....
  }
  .bar::shadow(:root > .foo) div {
     ....
  }
}

Are the above rules the same as the followings?

@host {  
  .bar::shadow(:root > .foo > div) {
     ....
  }
  .bar::shadow(:root > .foo div) {
     ....
  }
}

Or should we disallow the above rules?

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Wednesday, 15 May 2013 02:26:34 UTC