CSS Checker parse error

Post your questions and problem reports here

Moderator: kfury77

Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
  • Check the Support section of the corresponding product first. Chances are you will find your answer there;
  • Do not create new topics for already reported problems. Add your comments to the existing topics instead;
  • Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
  • Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
  • Include the version number of the software you are using;
  • This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;
Post Reply
charlesroper
Posts: 34
Joined: Wed May 10, 2006 9:57 am

CSS Checker parse error

Post by charlesroper »

I get a parse error (Parsing error in block "#header h1") on the following CSS:

Code: Select all

#header h1 {
	background: transparent url(/images/master/logo.png) no-repeat;
	line-height: 64px;
	margin: 0 0 8px 0; padding: 0;
}
If I change the url to ../images/master/logo.png (note the two dots), I no longer get the error. The original is a valid url, so is this a bug in the checker?

Charles
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Post by Karlis »

The CSS seems to be fine. What kind of validator did you use?

I tried built-in CSS validator and it returned no errors. W3 CSS validator is a third party tool, so we can not help with that.
Karlis Blumentals
Blumentals Software
www.blumentals.net
charlesroper
Posts: 34
Joined: Wed May 10, 2006 9:57 am

Post by charlesroper »

Weird, you're right, no errors are returned when that rule is pasted into a stylesheet on its own. However, I'm definitely getting the error when it's sitting within my main stylesheet. What's odd is that other url values within the stylesheet get parsed fine, it's just this one and one other, both of which are fine when I add the two dots. I can send you my stylesheet if you like?

I'm using the CSS Level 2 checker, but the problem occurs on all of them. I'm not using the W3C validator at all.

Charles
User avatar
syrupcore
Top Contributor
Posts: 917
Joined: Thu Jul 21, 2005 12:58 am
Location: Portland, Oregon, usa
Contact:

Post by syrupcore »

validates fine at the w3c too. where did you get the parsing error?

I've seen IE be a bastard if you don't use all the fields in the background declarations shorthand. Meaning, if you dont also use left/right and top/bottom positioning as part of the declaration.

like:

Code: Select all

   background: transparent url(/images/master/logo.png) 0 0 no-repeat;
Will
charlesroper
Posts: 34
Joined: Wed May 10, 2006 9:57 am

Post by charlesroper »

The stylesheet can be reached here if you want to test it:

http://www.sxbrc.org.uk/css/style.css
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Post by Karlis »

The developer who wrote the built-in CSS checker will take a look.
Karlis Blumentals
Blumentals Software
www.blumentals.net
Gatis
Blumentals Software Developer
Posts: 545
Joined: Sun Mar 05, 2006 12:30 am
Location: Latvia

Post by Gatis »

Thanks for the test file.
There was a bug indeed, which has been fixed and the fix will be included in the next update.
charlesroper
Posts: 34
Joined: Wed May 10, 2006 9:57 am

Post by charlesroper »

Many thanks!
Post Reply