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

Re: Proposal of @ua

From: Nikodem <freyjkell@gmail.com>
Date: Fri, 30 Nov 2007 13:29:21 +0100
Message-ID: <47500221.7050009@gmail.com>
To: www-style@w3.org

Freyjkell wrote:
> // cut
>
> I wonder mostly about IE (other UAs are generally good), because I
> don't wanna see anymore such shit like:
>
> <!--[if IE]><link rel="stylesheet" href="ie-sux.css"/><![endif]-->
> <![if !IE><link rel="stylesheet" href="non-ie-rox.css"/><![endif]>
> <!-- non-commented <![if ...]> is also incorrect HTML code -->
> <!--[if IE]><script src="re-styler.js"></script><![endif]-->
> * html div#123
> d\iv#abc
>
> My proposal, even if will be issued in IE 99, can clear CSS code.

I think that @media (renderer:Trident) {} is interesting.

That's better than any hack. Wanted or not, hacks will never die while 
IE is alive.

But we need to say in spec that these sniffs are supposed to FIX BUGS by 
overwriting standard-compatible values in order nobody to write 
following shit (worser than the shit existing before, because it expects 
only IE or Mozilla visitors):

// invalid:

@media (renderer:Gecko)
{
	body
	{
		background: url('top_left.jpg') top left, url('bottom_right.jpg') 
bottom right;
	}
}
@media (renderer:Trident)
{
	body
	{
		background:url('alternative.jpg');
	}
}

// valid:

body
{
	background: url('top_left.jpg') top left, url('bottom_right.jpg') 
bottom right;
}
@media (renderer:Trident)
{
	body
	{
		background:url('alternative.jpg');
	}
}

-- 
Freyjkell
Received on Friday, 30 November 2007 12:29:47 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:56 GMT