moz-border-radius attribute and CSS Validation problem |
moz-border-radius attribute and CSS Validation problem |
Iraj Nazarian Azad |
May 7 2012, 07:42 PM
Post
#1
|
Group: Members Posts: 1 Joined: 7-May 12 Member No.: 17,071 |
Dear Sirs
Hi, I use these lines in my site -moz-border-radius: 8px 8px 0 0; -webkit-border-radius: 8px 8px 0 0; -khtml-border-radius: 8px 8px 0 0; and some other -moz- , -webkit , -khtml attributes in my site's style-sheet , it worked fine but when I went to W3C CSS Validation Service for CSS Validation Service , this site display many errors to me because of these attributes. finally it force me to remove these attributes to validate my site . Please kindly inform me that is there a way to use these attributes and site remains validated? Best Regards, Iraj Nazarian Azad http://www.ahra.ir |
Christian J |
May 7 2012, 08:01 PM
Post
#2
|
. Group: WDG Moderators Posts: 9,656 Joined: 10-August 06 Member No.: 7 |
Vendors extensions to CSS are by definition invalid according to W3C. I wouldn't worry about it though (as long as you know what you're doing), the validator is a guide, not the police. However:
In the "More Options" sub menu on http://jigsaw.w3.org/css-validator/#valida...ri+with_options you can set the value of "Vendor Extensions" to "Warnings". I haven't tried that myself though, and of course other people must use the same validator settings to get the same results. Or you can hide the whole stylesheet from the validator by creating the STYLE element with javascript, or create just the style properties with javascript. |
Lo-Fi Version | Time is now: 23rd April 2024 - 10:45 PM |