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

RE: Proposal of @ua

From: Alan Gresley <alan1@azzurum.com>
Date: Fri, 30 Nov 2007 10:54:23 -0700
To: Brad Kemper <brkemper@comcast.net>
cc: www-style@w3.org
Message-ID: <20071130105422.34b83c2f3c9bef00757a2c62c0fb7450.0bf81a58ee.wbe@email.secureserver.net>

Brad Kemper wrote in reply to Freyjkell:

> > // valid:
> >
> > body
> > {
> > 	background: url('top_left.jpg') top left, url('bottom_right.jpg')  
> > bottom right;
> > }
> > @media (renderer:Trident)
> > {
> > 	body
> > 	{
> > 		background:url('alternative.jpg');
> > 	}
> > }
> >
> > -- 
> > Freyjkell
> >
> 
> Yes. I would see something like this example as a useful guidance  
> note to accompany the specification in the Recommendation.


But that is not needed. The same can be done with.

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

All browsers that I have tested in that doesn't support multiple backgrounds will ignore the later rule block and use the earlier rule block instead. This is what this updated test case demonstrates.

http://css-class.com/test/css/colorsbackgrounds/multiple-backgrounds.htm

It has be altered to be nice to IE5.5 or earlier. No escape is needed now.

Kind regards, Alan
Received on Friday, 30 November 2007 17:54:42 GMT

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