On May 22, 2010, at 10:00 PM, Ellen Herzfeld wrote:

> - use a special, simplified stylesheet that will produce a better user 
> experience than the two previous options. I thought that the "universal ie6 
> stylesheet" could be a good answer.
> 
> Of course, I can, as you suggest, remove any rules that obviously don't apply 
> to my site. But the whole point of using such "prepackaged" stylesheets is to 
> minimize work. Going painstakingly through each rule to see if it applies or 
> not seems a waste of time, especially for a large site. It is also much 
> easier to update if a new version is made available. I don't use frameworks, 
> but I'm sure those who do end up with a whole lot of html and css that is not 
> really relevant to their site. Are they supposed to remove all the cruft? And 
> do they actually do it?
> 
> The question is, aside from the aesthetic aspect of keeping everything clean, 
> is there a compelling practical reason not to use the "universal ie6 
> stylesheet" for IE5 and IE5.5 as is?

I don't see any particular reason not to use it (I've never used it and won't 
use it, as is). Thierry's point was that that stylesheet contains a number of 
rules and declarations that IE 6 and older won't be able to use anyway. Because 
those browsers don't understand them, and he gave some examples:

> blockquote:before, blockquote:after, q:before, q:after { content : ""; }
> blockquote, q {quotes : "" ""; } 

IE6 and older don't understand :before and :after.

One can add:
> blockquote, q {
> quotes : "" ""; }

same reason, the quotes property is not supported.

I see some odd things, like
> code { 
> display : block; }

I often use <code> in an inline context. A preceding rule also affects the code 
element .

Removing the couple of things he pointed out would make the stylesheet smaller, 
saving you a bit of bandwidth (and would make that stylesheet saner, in my 
book).

And he goes on suggesting to read his article
http://carsonified.com/blog/design/setting-rather-than-resetting-default-styling/
where-in he (strongly) suggest to use that kind of stylesheets as a starting 
point for your own.

Philippe
---
Philippe Wittenbergh
http://l-c-n.com/





______________________________________________________________________
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to