Author Topic: Ken's CSS no longer validates for anyone!?  (Read 1476 times)

0 Members and 1 Guest are viewing this topic.

Offline 96Cobra

  • Member
  • *
  • Posts: 37
Ken's CSS no longer validates for anyone!?
« on: November 11, 2012, 11:15:45 PM »
Was adjusting some stuff on my site and decided to check the CSS validation.  I got 5 errors that I've never had before and I didn't make any changes that should affect any CSS files.  I started checking other users of his scripts to see if I could find out what was wrong with mine.  Every site I checked had the same errors.  I guess something changed with the validation "rules"??  The error text is...

Code: [Select]
Sorry! We found the following errors (5)
URI : http://rkb2.com/weather-screen-silver-narrow.css
145 .leftSideBar ul Value Error : list-style-type none is not a list-style-type value : none
575 .postmetadata ul, .postmetadata li Value Error : list-style-type none is not a list-style-type value : none
585 #sidebar ul li Value Error : list-style-type none is not a list-style-type value : none
774 #horizontal-menu ul Value Error : list-style-type none is not a list-style-type value : none
URI : http://rkb2.com/index.php
42 .flyoutmenu ul Value Error : list-style-type none is not a list-style-type value : none

I compared other CSS files (colors & wide/narrow) and those have the same "none" comment, so they should now fail too.
« Last Edit: November 12, 2012, 02:07:47 AM by 96Cobra »

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9279
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Ken's scripts no longer validate for anyone!?
« Reply #1 on: November 11, 2012, 11:57:16 PM »
It's not the 'scripts' that have the issue, it is the CSS that seems to be flagged.

According to Sitepoint CSS reference (http://reference.sitepoint.com/css/list-style-type ), the value 'none' is allowed
Quote
list-style-type: { circle | disc | square | armenian | decimal | decimal-leading-zero | georgian | lower-alpha | lower-greek | lower-latin | lower-roman | upper-alpha | upper-latin | upper-roman | none | inherit } ;
and the W3schools (http://www.w3schools.com/cssref/pr_list-style-type.asp ) also show 'none' as a valid parameter.

Even the CSS2.1 standard ( http://www.w3.org/TR/2007/CR-CSS21-20070719/generate.html#list-style ) shows 'none' as a valid value.

Methinks that the http://jigsaw.w3.org/css-validator/ may itself have a validation issue since it doesn't properly recognize a standard CSS 2.1 value for link-style-type selector.

Best regards,
Ken

Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: Ken's scripts no longer validate for anyone!?
« Reply #2 on: November 12, 2012, 12:03:59 AM »
Thanks, Ken!  That's what I was just tracking down as well.  The problem seems to be the validator, not the CSS in question.  To be fair the validator did correctly flag a different problem that I had introduced recently with an inline style.
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline 96Cobra

  • Member
  • *
  • Posts: 37
Re: Ken's scripts no longer validate for anyone!?
« Reply #3 on: November 12, 2012, 02:06:04 AM »
Ken, my fingers were faster than my brain (always...) when I typed the title. Got it (CSS) right in the message though!

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: Ken's CSS no longer validates for anyone!?
« Reply #4 on: November 12, 2012, 11:51:13 PM »
Without any modifications my Ajax-Dashboard6 just passed CSS validation this evening, so apparently they've resolved their problem.
Regards, Jerry Wilkins
gwwilk@gmail.com