W3C home > Mailing lists > Public > www-style@w3.org > July 2008

Re: Scoped style sheets.

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Tue, 15 Jul 2008 11:44:52 -0500
Message-ID: <dd0fbad0807150944w604d231bmf2e7b9f2904250f2@mail.gmail.com>
To: "Brad Kemper" <brkemper@comcast.net>
Cc: "Andrew Fedoniouk" <news@terrainformatica.com>, "Ian Hickson" <ian@hixie.ch>, "David Hyatt" <hyatt@apple.com>, "Lachlan Hunt" <lachlan.hunt@lachy.id.au>, www-style <www-style@w3.org>
On Tue, Jul 15, 2008 at 11:39 AM, Brad Kemper <brkemper@comcast.net> wrote:

>
> On Jul 15, 2008, at 9:06 AM, Tab Atkins Jr. wrote:
>
> Andrew Fedoniouk <news@terrainformatica.com> wrote:
>
>> I propose to drop that <style scoped> feature then.
>> As, it seems, no one have clear idea of their purpose.
>
>
> No...  Their purpose is quite clear, and has been explained in several ways
> by several people.  They allow you to create a set of styles which can only
> affect a subset of the document.
>
>
> That is already very easily done. This really seems more and more like a
> solution in search of a problem.
>

Yes, it's easy for a site author to create selectors which target a section
of a document.  It's currently impossible (without a CSS parser/rewriter) to
make a *set* of styles only target a section of a document, especially when
the styles aren't written by the document author, but instead by end-users
or middle-users (such as, say, people on a social network styling their
individual pages).

In other words, it's intended to create a CSS sandbox, which is extremely
difficult to achieve with current methods.

~TJ
Received on Tuesday, 15 July 2008 16:45:34 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:55:10 GMT