Go to Post If they're going to blame you for it anyway, you might as well have fun. - Rick TYler [more]
Home
Go Back   Chief Delphi > Technical > IT / Communications > Website Design/Showcase
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 19-02-2012, 11:54
johnmaguire2013's Avatar
johnmaguire2013 johnmaguire2013 is offline
Harps On Websites
AKA: John Maguire
FRC #3322 (Eagle Imperium)
Team Role: Webmaster
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Ann Arbor, MI
Posts: 74
johnmaguire2013 is an unknown quantity at this point
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   Spotlight this post!  
Unread 27-02-2012, 19:25
digitxp digitxp is offline
Registered User
FRC #1403 (Cougar Robotics)
Team Role: Webmaster
 
Join Date: Feb 2012
Rookie Year: 2011
Location: Montgomery
Posts: 11
digitxp is on a distinguished road
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   Spotlight this post!  
Unread 27-02-2012, 21:07
johnmaguire2013's Avatar
johnmaguire2013 johnmaguire2013 is offline
Harps On Websites
AKA: John Maguire
FRC #3322 (Eagle Imperium)
Team Role: Webmaster
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Ann Arbor, MI
Posts: 74
johnmaguire2013 is an unknown quantity at this point
Re: A tip for those with CSS3 and/or vendor errors

Quote:
Originally Posted by digitxp View Post
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.
Very interesting link, I hadn't seen it before. But it still doesn't account for using CSS3 when the default is CSS2.1. I'm hoping the judges know enough to check properly.
  #4   Spotlight this post!  
Unread 12-03-2012, 11:16
subrc subrc is offline
Registered User
FRC #0461 (Westside Boiler Invasion)
 
Join Date: Mar 2012
Rookie Year: 2010
Location: Indiana
Posts: 4
subrc is an unknown quantity at this point
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   Spotlight this post!  
Unread 12-03-2012, 11:28
johnmaguire2013's Avatar
johnmaguire2013 johnmaguire2013 is offline
Harps On Websites
AKA: John Maguire
FRC #3322 (Eagle Imperium)
Team Role: Webmaster
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Ann Arbor, MI
Posts: 74
johnmaguire2013 is an unknown quantity at this point
Re: A tip for those with CSS3 and/or vendor errors

Quote:
Originally Posted by subrc View Post
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.
I have two counter-comments: First of all, if your CSS isn't valid, it will display differently in different browsers (even if they aren't the most commonly used ones) and even if it doesn't, you are supporting non-standardized code. Non-standardized code is what led to the <blink> and <marquee> tags. I also can't find the link right now, but there is a page which talks about how even vendor extensions are bad, because some users only use, for example, -moz-border-radius, instead of using the other browser's implementations, or the standard one as well, and other browsers are eventually going to start supporting each other's vendor extension implementations because it's the only way their users can see the same thing on particular websites. This is an issue because they are now adding in faux standards to the CSS specifications.

Additionally, I believe if you are going for the website award, valid CSS is a part of the rubric.
__________________
John Maguire
Website Team | PR/Marketing Team
FRC Team 3322 - Eagle Imperium | My Blog
  #6   Spotlight this post!  
Unread 13-03-2012, 17:44
subrc subrc is offline
Registered User
FRC #0461 (Westside Boiler Invasion)
 
Join Date: Mar 2012
Rookie Year: 2010
Location: Indiana
Posts: 4
subrc is an unknown quantity at this point
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   Spotlight this post!  
Unread 13-03-2012, 23:57
johnmaguire2013's Avatar
johnmaguire2013 johnmaguire2013 is offline
Harps On Websites
AKA: John Maguire
FRC #3322 (Eagle Imperium)
Team Role: Webmaster
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Ann Arbor, MI
Posts: 74
johnmaguire2013 is an unknown quantity at this point
Re: A tip for those with CSS3 and/or vendor errors

Quote:
Originally Posted by subrc View Post
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.
I guess my other point is that increasing browser support via vendor extensions (i.e. prefixed versions) isn't invalid CSS. If I remember correctly, it's actually stated in the CSS3 spec that vendor extensions are valid.

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.
__________________
John Maguire
Website Team | PR/Marketing Team
FRC Team 3322 - Eagle Imperium | My Blog
  #8   Spotlight this post!  
Unread 13-03-2012, 23:58
johnmaguire2013's Avatar
johnmaguire2013 johnmaguire2013 is offline
Harps On Websites
AKA: John Maguire
FRC #3322 (Eagle Imperium)
Team Role: Webmaster
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Ann Arbor, MI
Posts: 74
johnmaguire2013 is an unknown quantity at this point
Re: A tip for those with CSS3 and/or vendor errors

And a link for the spec stating that vendor extensions are valid. (Even in CSS Level 2.1, no less.)
__________________
John Maguire
Website Team | PR/Marketing Team
FRC Team 3322 - Eagle Imperium | My Blog
  #9   Spotlight this post!  
Unread 17-03-2012, 09:49
digitxp digitxp is offline
Registered User
FRC #1403 (Cougar Robotics)
Team Role: Webmaster
 
Join Date: Feb 2012
Rookie Year: 2011
Location: Montgomery
Posts: 11
digitxp is on a distinguished road
Re: A tip for those with CSS3 and/or vendor errors

Quote:
Originally Posted by johnmaguire2013 View Post
I also can't find the link right now, but there is a page which talks about how even vendor extensions are bad, because some users only use, for example, -moz-border-radius, instead of using the other browser's implementations, or the standard one as well, and other browsers are eventually going to start supporting each other's vendor extension implementations because it's the only way their users can see the same thing on particular websites.
For anyone who can't seem to find the link, the original source of this news was actually a co-chair of the CSS working group on a blog post.
  #10   Spotlight this post!  
Unread 17-03-2012, 09:53
johnmaguire2013's Avatar
johnmaguire2013 johnmaguire2013 is offline
Harps On Websites
AKA: John Maguire
FRC #3322 (Eagle Imperium)
Team Role: Webmaster
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Ann Arbor, MI
Posts: 74
johnmaguire2013 is an unknown quantity at this point
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.
__________________
John Maguire
Website Team | PR/Marketing Team
FRC Team 3322 - Eagle Imperium | My Blog
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 01:57.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi