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.
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.
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.
As Browservendors try to implement the new css features, they add prefixes, as long as they are not 100% conform to the css-standard. These vendor-prefixes are not part of the official CSS-specification and thus produce errors when run through the css-validator.
However, you could try PrefixFree if you are absolutely keen on having standard-conform css.