Html Xhtml Blogs

28
Jul

RGBa is not supported by the W3C's CSS validator

We've been checking some of our sites before submitting them to the 2011 Australian Web Awards and here's a little gotcha that had us pulling our hair out for a few hours.

The problem

The W3C's CSS validator does not support RGBa (at least on borders)!

Examples:
border: 1px solid rgba(0,0,0,0.5);

Symptoms

You get one or many of the errors when trying to validate your CSS on lines where you use RGBa():

16
Jan

HTML name attribute deprecated?

Well, I thought it was, but in a typical example of making assumptions before finding out the whole truth, it turns out I was wrong. This cost me a lot of time today, trying to debug a problem with a Javascript library. I think the lesson to be learned here is that one should always check their assumptions!