I have a CSS file that uses CSS3 properties (opacity
and -moz-*
and -webkit-*
ones). Of course, it doesn't validate as CSS 2.1. Not a big deal, but nevertheless is it possible to make it a valid CSS 2.1?
views:
248answers:
4
+1
A:
Illegal values or unknown properties are being ignored. So unless you have a syntax error, you can use those values/properties.
Or do you want to have a valid CSS 2.1 stylesheet just to put a badge on your website?
Gumbo
2009-09-20 14:25:12
+1
A:
It is not possible to validate an invalid CSS.
A CSS with not standard selectors is not valid.
Developer Art
2009-09-20 14:27:28
Validating is the process of testing the validity. And *valid* and *invalid* are the results you get when you validate something.
Gumbo
2009-09-20 14:31:11
Since we know the requirements for a document to be accepted as valid, and since we know one of the requirements in not fulfilled, we can predict the result of the validation process in advance.
Developer Art
2009-09-20 14:39:31
A:
Use all CSS3 properties in another css sheet, and validate that without CSS3 :)
Rin
2009-09-20 14:27:56