Forums

W3C Validator has changed????? (6 posts)

  1. kaotik
    Member
    Posted 2 years ago #

    Is it me or is the validator not validating background shortcut code anymore? I am getting this error: #container Value Error : background Parse Error [empty string]

    My code is like this,

    #container {
    	width: 1000px;
    	background: #fff url(images/bg_header.gif) no-repeat top;
    	margin: 0 auto;
    	text-align: left;
    }

    This code was validating just fine 2 days ago and now it's not. Anyone else seeing issues in their CSS? I couldn't find anything about this anywhere yet.

  2. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    Your CSS is actually incomplete. Try:

    #container {
    	width: 1000px;
    	background: #fff url(images/bg_header.gif) no-repeat left top;
    	margin: 0 auto;
    	text-align: left;
    }
  3. kaotik
    Member
    Posted 2 years ago #

    Hmmm, strange, yes it validates now...either I'm overly tired or they're changing things because I don't remember this being the case. :|

  4. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    The validator isn't always 100% accurate in spotting errors and does get updated from time to time as bugs are documented. The relevant specs, however, do state that both the x and y coordinates should be present for the background-position property. You can omit them completely when using the shorthand background property but if you include one, you have to include the other.

    Does that make sense?

  5. kaotik
    Member
    Posted 2 years ago #

    Sure, but this isn't really a bug since it's always validated before today. That method I posted above has been used for quite some time now. But I figure they have to keep busy over there and keep it up to date as new "correct" methods come along, but I am starting to see other things pop up on the web about this very issue. I wonder what they'll change next?...

  6. convert2xhtml
    Member
    Posted 2 years ago #

    yes seems they have changed small things in validations. Thats why its always suggested to get valided in small intervals

Topic Closed

This topic has been closed to new replies.

About this Topic