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

RE: no-cascade proposition

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Wed, 24 Dec 2008 14:58:37 -0500
Message-ID: <20081224145837.lo5pdcbew5wook08@webmail.mit.edu>
To: Niels Matthijs <niels.matthijs@internetarchitects.be>
Cc: Sylvain Galineau <sylvaing@microsoft.com>, www-style@w3.org

Quoting Niels Matthijs <niels.matthijs@internetarchitects.be>:

> So you have to write xhtml and css for the banner, and you have to 
> make sure it shows up correctly in all sites.

You also have to make sure it doesn't break any of the scripts on those sites
(for example, your xhtml must not use any id values that any of those sites
might use, since IDs have to be unique per document).  You also have to make
sure that not only does the site's CSS not apply to the banner, but the
banner's CSS doesn't apply to the site.  You have to make sure that any 
in the banner don't affect the site.

> Problem is that you don't know the css of these sites.

True, nor do you know what their scripts look like or what IDs they're using.

> What you deliver is just a piece of xhtml and css, so can anyone 
> explain to me why this piece of code should be separately marked in 
> the actual mark-up? I fail to see the benefit.

The benefit is script isolation (in addition to the CSS isolation you 
want) and
prevention of namespace collisions.

Received on Wednesday, 24 December 2008 20:08:05 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:42 UTC