I am using box-sizing with vendor prefixes, like this
…running it through the CSS validator
…and getting this error:
Property -moz-box-sizing doesn’t exist : border-box
Is there a way to make it pass?
Many thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No. CSS3 is in BETA mode, browsers need to have prefixes because some properties have different values. In the future this will be one standard, the W3C CSS level 3 standard. Then the prefixes will be removed.
However, we need to use prefixes today and prefixes aren’t really CSS, they are just an indicator for a browser which of the properties it will parse. And because they aren’t CSS the CSS validator wouldn’t pass.
But a ‘valid’ page doesn’t say anything. Don’t worry about some errors in your CSS/HTML, fix only the ones who are critical.