Skip to content

24 ways to impress your friends

Vote down?

Dave Sparks

Nice kick off to 24 ways.
However I’m pretty sure your method for supporting IE won’t work.
If I remember correctly it will write the rgb colour then attempt to write the rgba colour get confused by the “a” bit and give the element a default colour (Or so Andy Clarke tells me).
So for a h1 it will write the rgb colour, then try and write the rgba get confused and fall back to the default of black.

The easiest way around this would be to use something like modernizr.