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

[whatwg] Selectors within <style scoped>

From: Kornel Lesiński <kornel@geekhood.net>
Date: Fri, 17 Jun 2011 21:04:47 +0100
Message-ID: <op.vw8kp9oate2ec8@aimac.local>
On Thu, 16 Jun 2011 19:32:42 +0100, Dimitri Glazkov  
<dglazkov at chromium.org> 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.

That feels magical and a bit backwards to me.

Why not scope all selectors except ones starting with :root?

.foo {scoped}

:root .foo {matches outside scope}

-- 
regards, Kornel Lesi?ski
Received on Friday, 17 June 2011 13:04:47 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:09:06 UTC