Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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