At the end of the modules/system/default.css file you find the following:

/* Hides from IE-mac \*/
* html .clear-block {
  height: 1%;
}
.clear-block {
  display: block;
}
/* End hide from IE-mac */

And when you request compressed CSS, you make sure that the comments including \*/ at the end are not removed.

      $contents = preg_replace('<
        \s*([@{}:;,]|\)\s|\s\()\s* |  # Remove whitespace around separators, but keep space around parentheses.
        /\*([^*\\\\]|\*(?!/))+\*/ |   # Remove comments that are not CSS hacks.
        [\n\r]                        # Remove line breaks.
        >x', '\1', $contents);

Now that is neat, but to work properly, you need the next comment too since the next comment is the one that closes the comment under IE5 under Mac. (or whatever silly browser accepting \ as an escape character in comments of CSS files.)

So, I don't have a good answer for this, but you cannot keep one and not the other since at this time pretty much the entire CSS file disappear to IE5...

Thank you.
Alexis

Comments

Status: Active » Closed (outdated)

Automatically closed because Drupal 6 is no longer supported. If the issue verifiably applies to later versions, please reopen with details and update the version.