Closed (fixed)
Project:
Nitobe
Version:
6.x-4.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Feb 2011 at 15:45 UTC
Updated:
26 Feb 2012 at 22:50 UTC
Hi,
When I validate the CSS, using http://jigsaw.w3.org/css-validator/
I get this error: This profile has a very specific syntax for @charset: @charset followed by exactly one space, followed by the name of the encoding in quotes, followed immediately by a semicolon. @CHARSET "UTF-8";
From what I understand in the forums, UTF-8 is correct for Drupal, but can cause problems with Safari.
Does anyone have any advice on this issue?
Thanks
Comments
Comment #1
macmladen commentedThe error is because declaration is in upper-case.
Just change it in every stylesheet and you'll be fine with that.
Also there is mistake in
text-decoration: strikethroughwhich does not exist, should be changed toline-throughHowever, there are still some errors with mozilla and web-kit extensions in
system.csswhich could be overridden, however I didn't bother with that.Shannon, please change those both in 6.x and 7.x version.
Comment #2
Marie Marie commentedHey, thanks for getting back to me :-)
I tried it:
@charset "uft-8";
But then, none of my css works :-(
The validator tells me, several times, that:
The @charset rule may only occur at the start of the style sheet. Please check that there are no spaces before it. @charset "uft-8";
But, there are no spaces. Do you think this is something to do with having 8 different style sheets, all with charset at the top?
When I comment out charset, my page validates. It then, still appears in the page source code (I'm not sure where from!). So, is it best just to remove it all together?
Thanks
Comment #3
Marie Marie commentedPls ignore the last comment... it was Sunday... it was late... I should have been chilling out & not geeking!
The errors were due to me running the validator on my localhost.
Now that I made the changes on my live site, it validates & alls good.
By the way, thanks for this truely beautiful, clean theme. I've subthemed it to build my last two sites (learning CSS as I go).
So thanks!
Comment #4
Pedro Lozano commentedCommited the changes to the 7.x-2.x branch. Thanks Marie for reporting and MacMladen for the fix.