By runeveryday on
I am using theme Deco in drupal 6.15, and was surprised to see that styles are not applied. when I enabled the CSS optimization. but when i change the theme to another ,the theme can work.ie: the CSS optimization is right. don't really know whether this is an issue with the theme or drupal.
Comments
Probably some css
Probably some css errors.
Before you set the performance setting to optimize the css (which aggregates all the separate css files into 1), validate the css in an online validator and fix the errors (if there are any), then turn on the css optimization again and it should work.
i validated the css by the
i validated the css by the online w3c validator,there is no some big errors. i find a post http://drupal.org/node/260717 whose problem is the same as me.see the answer,but in deco theme, i don't know how to fix it.
Not exactly sure how this
Not exactly sure how this theme works.
I see that it is a subtheme of the Fusion Core base theme and the Skinr module is a requirement. You should look at the issues queue for both of these to try to figure it out.
Good luck with it.
the issue could be with the BOM sequence...
I found similar issue with my custom theme.
After going through the optimized css-file I found that Drupal didn't cut the BOM's (byte order mask) from the optimized file. You can normally find the BOM at the beginning of most UTF-8 files, but these BOM's are supposed to be stripped of when a sequence of css-files is optimized into one single file.
If you don't do this - you'll have a number of BOM's in the middle of the optimized file which cannot be properly handled by the browser. As the result - the first tag from each CSS file gets ignored by the browser.