Monday, February 20, 2012

W3C validator does not like css3

If you use a referer url (http://jigsaw.w3.org/css-validator/check/referer) to the w3c validator for your css3, the validator will tell you that you have a broken css. This is because css3 is not a finished standard (from w3c point of view) and the validator will assume that you use css 2.1 by default. I discovered this when I added css3 media queries to my blogs css and the validation returned errors. However you can force the w3c validator to validate css3 by appending ?profile=css3 to the referer url like this: http://jigsaw.w3.org/css-validator/check/referer?profile=css3

No comments:

Post a Comment