RE: Useragent Rules in CSS

> > various CSS features on and off.  A checkbox for
@supports(text-decoration:
> > blink) jumps out immediately.
> 
> Already supported by !important rules (although getting 
> enough selector
> specificity may be a problem when trying to cancel an unknown 
> style sheet).

@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);
	}
}

!important rules give the designer - though useful - give the designer no
such option

> > A numeric value for @supports(font-size < 4pt) would be very helpful
> > against that particular kind of spam that uses
> > 1px-high text to throw off Bayesian anti-spam tools.  A designer's
nightmare
> 
> This requires a minimum font size attribute.

Not really.  Mozilla's Firefox already has a "minimum font size" preference
- text that would otherwise render at less than (say) 6pt is rendered at
6pt.  Again the designer is unaware.  @supports would allow something like

@supports(font-size: 4pt)
{	div#eula { font-size: 4pt; }	
}

!@supports(font-size: 4pt)
{	div#eula { overflow: scroll; }
}

Received on Wednesday, 31 March 2004 19:10:40 UTC