• 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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • 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;
    }
    Thread Starter kaotik

    (@kaotik)

    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. 😐

    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?

    Thread Starter kaotik

    (@kaotik)

    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?…

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘W3C Validator has changed?????’ is closed to new replies.