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

[whatwg] Selectors within <style scoped>

From: Dimitri Glazkov <dglazkov@chromium.org>
Date: Mon, 18 Jul 2011 19:55:20 -0700
Message-ID: <CADh5Ky2i1u-yao=Mi9Tnvh-mOCEtb6hAU2r6vDg0mXPHM5Hfaw@mail.gmail.com>
I actually really like this proposal.

Let's do this. Roland, Dave, Boris -- what do y'all think?

:DG<

On Fri, Jun 17, 2011 at 1:04 PM, Kornel Lesi?ski <kornel at geekhood.net> wrote:
> 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 Monday, 18 July 2011 19:55:20 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:34 UTC