[whatwg] Selectors within <style scoped>

Boris Zbarsky bzbarsky at MIT.EDU
Thu Jun 16 11:55:24 PDT 2011


On 6/16/11 2:32 PM, Dimitri Glazkov wrote:
> What if we do this:
>
> 1) By default,<style scoped>  implies that all selectors in this
> stylesheet are prefixed with ":scope".
> 2) Unless the ":scope" is already in the selector.

I could live with that.

Especially if we allowed the CSSOM in this situation to include the 
implied ":scope" on selectors that did not include it in the text (in 
which case, this is a simple parse-time transformation on the stylesheet).

-Boris


More information about the whatwg mailing list