Search code examples
csswebkitw3c-validation

Valid CSS with new properties


I am using a few CSS tricks to boost up the usability/appearance of my site in Webkit browsers. The two main ones are text-shadow and resize:none (on textareas - to stop that annoying page-breaking resize option in Safari and others).

The problem is that when I run my page through the W3 validator I get tons of:

Property text-shadow doesn't exist in CSS level 2.1 but exists in : #feb4b4 1px 1px 0 #feb4b4 1px 1px 0

-and-

Property resize doesn't exist in CSS level 2.1 but exists in : none none

Is this really not valid? Should I really not use this, or is it an error to just ignore?


Solution

  • The text-shadow property is a CSS3 property. If you pick CSS Level 3 from the advanced options on the W3 CSS Validtor service, it should come through okay. It was also in CSS Level 2, but dropped for CSS Level 2.1.