[whatwg] Selectors within <style scoped>

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