W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2011

[whatwg] Selectors within <style scoped>

From: Kornel Lesiński <kornel@geekhood.net>
Date: Wed, 20 Jul 2011 20:36:59 +0100
Message-ID: <op.vyxnfxdgte2ec8@aimac.local>
On Tue, 19 Jul 2011 05:14:55 +0100, Boris Zbarsky <bzbarsky at mit.edu> wrote:

> This is actually an interesting question.  Does this end up  
> corresponding to:
>
>    :scope foo .bar, foo:scope .bar
>
> or to just
>
>    :scope foo .bar
>
> ?  The latter would not match on 'foo' being the scope element, while  
> the former would.

I think it should match the scoping element, as I expect this pattern to  
be common until <style scoped> is widely supported:

<div id=widget>
   <style scoped>
     #widget foo {}
   </style>
</div>

-- 
regards, Kornel Lesi?ski
Received on Wednesday, 20 July 2011 12:36:59 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:34 UTC