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

[whatwg] Selectors within <style scoped>

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Thu, 16 Jun 2011 14:14:22 -0700
Message-ID: <BANLkTi=FPBeJywLEc0xrGxJ8VQf94O0Yg_8giHUahnKnrWNN7A@mail.gmail.com>
On Thu, Jun 16, 2011 at 11:55 AM, Boris Zbarsky <bzbarsky at mit.edu> wrote:
> 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).

This sounds like the sanest way to go about it.

~TJ
Received on Thursday, 16 June 2011 14:14:22 UTC

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