W3C home > Mailing lists > Public > www-style@w3.org > September 2011

Re: Suggestion for @global to help with <style scoped>

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Wed, 21 Sep 2011 08:09:41 -0700
Message-ID: <CAAWBYDC2wc-h5Y2+6efg+mYh3ehkr3kO3EdxSQHoS6eFzA1J7A@mail.gmail.com>
To: Brian Kardell <bkardell@gmail.com>
Cc: www-style@w3.org, fantasai <fantasai.lists@inkedblade.net>
On Wed, Sep 21, 2011 at 8:05 AM, Brian Kardell <bkardell@gmail.com> wrote:
> I apologize if I missed this reading through the whatwg threads, but
> thinking about this with things like xbl in mind as well: is the goal merely
> to "limit the leaking" of styles outside the scope unless you really mean it
> or to truly encapsulate (disallow leaking outside the scope, but allow you
> to use the containing context in your match)?  Either way I am wondering how
> other conversations about selecting the subject play into possible
> scenarios.

A <style scoped> never styles anything outside of its scoping element
(no matter what, matched elements are filtered to only those within
the scope).  We're discussing ways to control whether the containing
context is used in matching or not.

Received on Wednesday, 21 September 2011 15:10:29 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:04 UTC