Re: Insulating part of a HTML document from global CSS

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.

~TJ

Received on Wednesday, 16 October 2013 13:27:58 UTC