W3C home > Mailing lists > Public > www-style@w3.org > October 2013

Re: Insulating part of a HTML document from global CSS

From: Garrett Smith <dhtmlkitchen@gmail.com>
Date: Wed, 16 Oct 2013 08:14:27 -0700
Message-ID: <CABZUbM2V7rhoBBUSB4t9bpQjaPnH-gopeDMdxDWHFWmavAS6KA@mail.gmail.com>
To: "Tab Atkins Jr." <jackalmage@gmail.com>, "cc: Tom Wardrop" <tom@tomwardrop.com>, "www-style@w3.org" <www-style@w3.org>, "Robert O'Callahan" <robert@ocallahan.org>
My reply quoted below...
(I hit "reply" instead of "reply all"; now I'm putting it back on the list).

On Wed, Oct 16, 2013 at 8:09 AM, Garrett Smith <dhtmlkitchen@gmail.com>wrote:

>
>
>
> On Wed, Oct 16, 2013 at 6:27 AM, Tab Atkins Jr. <jackalmage@gmail.com>wrote:
>
>> On Wed, Oct 16, 2013 at 2:07 AM, Robert O'Callahan <robert@ocallahan.org>
>> wrote:
>> > On Wed, Oct 16, 2013 at 8:53 PM, Tom Wardrop <tom@tomwardrop.com>
>> wrote:
>> >> I tried searching online for this, but came up empty, so I'll ask here.
>> >> Are there any plans to provide a mechanism for insulating part of a
>> HTML
>> >> node tree from globally defined CSS styles? The classic example is the
>> case
>> >> of a web-based email client. Emails contain their own style sheets and
>> HTML,
>> >> but how is one meant to display this within the context of another web
>> page
>> >> without resorting to iframe's. I don't see iframe's as solution as
>> they come
>> >> with scripting, security and usability limitations.
>> >
>> > <iframe sandbox> is designed for this, possibly combined with the
>> "seamless"
>> > attribute.
>>
>> Custom elements would also solve this problem.
>>
>> Yes they would. It might be more work than simply resetting them in a
> scoped stylesheet. Also,
>
> <disclaimer>
> Shadow DOM is still in draft stage
> </disclaimer>
>
> Here are some examples of Shadow DOM.
> http://www.html5rocks.com/en/tutorials/webcomponents/shadowdom/
>
> Draft:
> http://www.w3.org/TR/shadow-dom/#api-shadow-root-apply-author-styles
>

-- 
Garrett
Twitter: @dhtmlkitchen
Received on Wednesday, 16 October 2013 15:14:54 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:51:03 UTC