W3C home > Mailing lists > Public > www-style@w3.org > April 2004

Re: Useragent Rules in CSS

From: Rijk van Geijtenbeek <rijk@opera.com>
Date: Thu, 01 Apr 2004 11:59:47 +0200
To: "WWW Style" <www-style@w3.org>
Message-ID: <opr5rvdxr2icz8n2@jol>

On Thu, 1 Apr 2004 10:09:32 +0200 (MEST), Jens Meiert  
<jens.meiert@erde3.com> wrote:

>
>> @supports would allow the designer to specify an alternative:
>>
>> @supports(text-decoration: blink)
>> {	div#alert { text-decoration: blink; }
>> }
>>
>> !@supports(text-decoration: blink)
>> {	div#alert
>> 	{	font-size: 85pt;
>> 		color: red;
>> 		background: url(animated.gif);
>> 	}
>> }
>
> I guess that's called CSS from hell.

Quite! :)

But you could also do this with the proposed '@batch' rule:

@batch { div#alert { font-size: 85pt; color: red; background:  
url(animated.gif); } }
@batch { div#alert { text-decoration: blink; font-size: inherit; color:  
inherit; background: inherit; } }

-- 
The Web is a procrastination apparatus:    |  Rijk van Geijtenbeek
It can absorb as much time as              |   Documentation & QA
is required to ensure that you             |   Opera Software ASA
won't get any real work done.  - J.Nielsen |  mailto:rijk@opera.com M
Received on Thursday, 1 April 2004 05:04:30 GMT

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