[whatwg] Selectors within <style scoped>

Boris Zbarsky bzbarsky at MIT.EDU
Tue Jul 19 06:11:34 PDT 2011

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?


More information about the whatwg mailing list