[whatwg] Selectors within <style scoped>

On 7/19/11 12:30 AM, Roland Steiner wrote:
> I think one could argue for either case. Personally, I think it's
> advantageous to include the scoping element (i.e., use ":scope foo .bar,
> foo:scope .bar"), in order to be able to do style the scoping element
> itself rather than its children individually, e.g.
>
> :scope { background-color: mauve; }

Hmm.  I agree this is a useful thing to do, but perhaps it's better 
accomplished by not prepending ":scope " to selectors which have a 
:scope in the first sequence of simple selectors in addition to ones 
that have :root there?

This would still not make "foo .bar" match if the scope is a foo, but 
would we actually want to match?

-Boris

Received on Tuesday, 19 July 2011 06:11:34 UTC