Re: Proposal: useragent at-rule

Quoth Dave Shea on 3/29/2004 4:03 PM...

> Simply: we need a way to gracefully degrade our style for flawed and 
> older browsers, so as not to hinder usability/accessibility for our end 
> users.
> 
> I don't see anything in the official spec that provides an opportunity 
> to do this. I think that's a shame.

The way to do this is NOT to introduce browser-specific code into CSS, but to 
test for support of individual features:

@supports(td:hover) {
	/* CSS code */
}

Part of the reason for having official standards is to lessen the dependence 
upon coding for a particular browser; having that standard explicitly account 
for browser peculiarities wouldn't make sense.

-FG

Received on Monday, 29 March 2004 17:12:52 UTC