Re: Proposal of @ua

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 UTC