CSS Validator to report vendor-specific extensions as warnings, not errors
In late 2009 I wrote an article explaining that Vendor-specific extensions are invalid CSS. They are also a fact of life if you want to be able to use new CSS features, which most of us do.
As I explain in the article, the CSS Validator reporting vendor-specific extensions as errors is correct, but it does make it difficult to find any real errors (typos, syntax errors, etc.) among all the “Property -webkit-border-radius doesn’t exist” and similar messages. And as we add more and more vendor-specific selectors in order to use CSS3, this situation gets worse.
I suggested that the CSS Validator could somehow let you know if the errors are caused by vendor-specific extensions or if they are actual syntax errors. Well, something similar to that will soon be possible since CSS Validation Will Soon Be More Realistic.
An update to the CSS Validator adds an option called “Vendor Extensions” where you can choose to have it report vendor extensions as warnings, not errors. Excellent! This has two benefits:
- The list of errors will now contain (hopefully) only things that you should do something about, making it less likely that you leave typos and mistakes in your CSS.
- Vendor extensions will be reported as “Property -webkit-border-radius is an unknown vendor extension” instead of “Property -webkit-border-radius doesn’t exist”.
Subscribe / follow
- Frontend Developer at Momentum Design Lab (San Francisco, CA, US)
- Front End Developer at Domani Studios (Brooklyn, NY, Ne, US)
- User Experience Architect for Crimson at The Advisory Board Company - Crimson (Austin, TX, Te, US)
- Front End Designer & Developer at Mission Data (Anywhere in the US with travel to Louisville, KY and Washington DC, Il, US)
DreamHost web hosting
Use the promo code 456BEREASTREET3 to save USD 20 when you sign up for DreamHost