Search code examples
cssw3c-validationvendor-prefix

How to validate vendor prefixes in CSS like -webkit- and -moz-?


I use the webkit/mozilla border radius and box shadow CSS properties, but I want the CSS to validate (which it currently does not). Is there a way to get it to validate?

http://jigsaw.w3.org/css-validator/


Solution

  • No, they are browser specific properties, and not defined in the standard CSS specification.

    That being said, they correctly follow the rules for vendor specific extension of CSS. It's just not in the W3C official CSS specification.