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

Re: Proposal of @ua

From: Brad Kemper <brkemper@comcast.net>
Date: Sun, 21 Oct 2007 11:11:05 -0700
Message-Id: <C0B51197-BA87-4286-BF7F-69A3E9F40A72@comcast.net>
Cc: freyjkell@gmail.com, www-style <www-style@w3.org>
To: "Kornel Lesinski" <kornel@osiolki.net>

On Oct 20, 2007, at 4:34 PM, Kornel Lesinski wrote:

> Conditional comments in HTML encourage using completely separate  
> stylesheet for IE, so all ugly code is kept in one place and can be  
> easily revised when Microsoft changes IE.
> Your proposal makes it easier to pollute CSS code with UA-specific  
> hacks, so I don't think that's improvement over conditional HTML  
> comments in terms of CSS tidyness.

Conditional comments in HTML require editing every single HTML page  
on your site, and doing it again when a new browser version comes out  
or if you change your design and require a separate sheet for some  
other version that you didn't before. Having similar functionality in  
a shared CSS file itself is a huge advantage over having it in the  
HTML, and you can still link to a separate file if you wish, from  
within that one file, by using @import.
Received on Sunday, 21 October 2007 18:11:17 UTC

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