Re: Useragent Rules in CSS

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:25 UTC