The css-files contain invalid css

Bug #736975 reported by Hans Joachim Desserud
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Widelands Website
Fix Released
Low
Shevonar

Bug Description

I recently discovered some of the css-files does not contain valid css. Attempting to validate the files currently results in five errors and 24 warnings. I have pushed a branch (https://code.launchpad.net/~hjd/widelands-website/valid-css) which fixes four of the five errors. The last error is in base.css:

.box_item_model .border_top {
    border-top: 1px solid rgb(9, 9, );
}

where it fails to parse the value, since it is missing the last color value. I did not change this, as I wasn't sure what the intended color was.

The warnings mainly concern colors which are used in multiple contexts, which I have also left alone, since I was unsure what the correct fix would be.

Ideally the warnings should be fixed as well, but I would be happy if the remaining error is fixed so that the css validates.

--
The quickest way to check if the css is valid is to go to the directory widelands-website/media/css, combine all the files and validate them at W3C's CSS validator http://jigsaw.w3.org/css-validator/validator.

To combine all the .css-files, run the following command
cat * > all.css
and then upload the file you wrote to.

Tags: validation

Related branches

Changed in widelands-website:
importance: Undecided → Low
tags: added: validation
Revision history for this message
SirVer (sirver) wrote :

Hans Joachim, thanks for reporting this. I would appreciate it if you would make suggestions for the colors following your own convenience and try to fix the remaining warnings. There is noone working on the homepage layout and design and therefore you have absolute freedom.

Please reply here if you are willing to invest into this, otherwise I will go ahead and merge your branch as is.

Changed in widelands-website:
status: New → Confirmed
Revision history for this message
Hans Joachim Desserud (hjd) wrote :

Sounds cool, except I have some problems setting up a local version (bug 737841). This is also why I haven't suggested anything for the last error. So if I get something up and running, I'll look further in to it. :)

Shevonar (shevonar)
Changed in widelands-website:
status: Confirmed → In Progress
assignee: nobody → Shevonar (shevonar)
Revision history for this message
Hans Joachim Desserud (hjd) wrote :

From what I remember, the errors in the CSS files were fixed, but there were still some warnings left.

Revision history for this message
Shevonar (shevonar) wrote :

The new design will have no warnings (except vendor tags and CSS3 values) ;)

Shevonar (shevonar)
Changed in widelands-website:
status: In Progress → Fix Committed
Nasenbaer (nasenbaer)
Changed in widelands-website:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.