|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||||
|
|||||
|
A tip for those with CSS3 and/or vendor errors
If you use things in your CSS that begin with -moz or -webkit, etc. you will probably get some errors on these during validation. If you are validating manually on W3C's Jigsaw service, simply hit "More Options" and change "Vendor Extensions" to "Warnings." Presto, gone. Additionally, CSS3 is listed in the same place.
The funny thing is, no matter how you set your options on that page, the CSS button it gives you is NOT going to follow that. It will follow the defaults. However, you can manually change the link to your liking. Here's an example: http://jigsaw.w3.org/css-validator/c...xtwarning=true Notice the GET variables profile=css3 and vextwarning=true. These will make sure that W3C validates your stylesheet correctly. Additionally, if you're using HTML5, you can find a nice valid icon here, which also provides a similar CSS one. Hope that helps! |
|
#2
|
|||
|
|||
|
Re: A tip for those with CSS3 and/or vendor errors
Do you know if the judges will follow those links, or will they paste in the URL themselves?
I've been paranoid and assumed that they would just paste in the URLs themselves and have been using PrefixFree...just in case. |
|
#3
|
|||||
|
|||||
|
Re: A tip for those with CSS3 and/or vendor errors
Quote:
![]() |
|
#4
|
|||
|
|||
|
Re: A tip for those with CSS3 and/or vendor errors
I noticed this as well a while back, and changed our "CSS" link in our footer like you did. Turned out our stylesheet still had some errors in it thanks to normalize.css. I'm not too bothered by it though, and here's why.
There's technically no accessibility benefit to using completely valid CSS. CSS is just a presentation tool after all. Valid HTML is important because it allows your website to target browsers which you don't usually think about, such as search engines and screen readers. Valid CSS doesn't let you do this. I have a hard time thinking you need to worry about whether you get errors for using vendor extensions in your CSS. Or about whether or not you are using hacks in your CSS, for that matter. So right now, our website doesn't have valid CSS, and I'm not too bothered to change that. I'd love for someone to prove me wrong here and get me to fix that. |
|
#5
|
|||||
|
|||||
|
Re: A tip for those with CSS3 and/or vendor errors
Quote:
Additionally, I believe if you are going for the website award, valid CSS is a part of the rubric. |
|
#6
|
|||
|
|||
|
Re: A tip for those with CSS3 and/or vendor errors
Ironically, the only reason we have to use invalid CSS is to increase browser support. border-radius and box-shadow are a part of the CSS3 spec by now, but older browsers only support the prefixed versions. After all, the whole point of using normalize.css was to get things to look consistent between browsers.
You make a great point about vendor prefixes, but I can't blame browser vendors for implementing features faster than they are standardized. It's certainly better than being the other way around. I have faith for now that the scenario you point out will never happen. Also, non-standard code also led to some useful technologies like AJAX. The blink and marquee tags just tell one side of the story. Just pointing that out. ![]() I care about standards as much as anyone and I understand FIRST's intention, but I think it makes sense to stretch the rules a bit. |
|
#7
|
|||||
|
|||||
|
Re: A tip for those with CSS3 and/or vendor errors
Quote:
And that's true, about AJAX, although isn't that pretty standardized now (despite the fact that all browsers use a different way of doing it... again, an annoyance, much like a "new feature" done during the browser war.) I agree. I just don't think vendor extensions are stretching the rules, haha. |
|
#9
|
|||
|
|||
|
Re: A tip for those with CSS3 and/or vendor errors
Quote:
|
|
#10
|
|||||
|
|||||
|
Re: A tip for those with CSS3 and/or vendor errors
Thank you. While not the site I found originally, you're definitely right that it's the original source for sure. The site I found even had a similar title, if I remember correctly.
![]() |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|