When I enable "Aggregate and compress CSS files" with Garland as the default theme, the background images disappear in IE7 and IE6 (tested by Chriskennedy). The layout is still fine on Opera 9.02.

Without the preprocessor enabled, Garland displays as it should.

(Apache/2.2.2 (Win32), PHP/5.1.4)

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ChrisKennedy’s picture

Status: Active » Needs review
FileSize
892 bytes

Taking out the whitespace optimizations appears to fix this bug and http://drupal.org/node/102487

Patch attached, tested in IE6.

chx’s picture

Status: Needs review » Reviewed & tested by the community

I believe this is good to go. While it is a regression, no user interface or API is affected so we can fix this post RC without affecting anything/anyone. (Once again, IE rains the parade :( how sad.)

chx’s picture

And, even if we can/do not fix this past RC, we can ship D5 without the whitespace removal in core. It would be not as perfect but nothing is :(

ChrisKennedy’s picture

FileSize
686 bytes

Attached patch fixes both issues by removing the first regex substitution but keeps the second two.

m3avrck’s picture

I bet this is a problem with @import -- unfort I don't have anytime to verify, but with a quick glance that is my best guess. Steven could probably comment more, that was his regex :-p

ChrisKennedy’s picture

FileSize
734 bytes

It turned out that the \) was causing the error. This patch uses chx's suggestion to just str_replace an extra space after parentheses.

Heine’s picture

Solves the issue on IE7

Heine’s picture

#6 solves the issue on IE7 and has no negative consequences for Opera.

jacauc’s picture

Steven’s picture

Patch attached which leaves a single space around parentheses, but still strips on the inside. I also added the comma as a separator.

Steven’s picture

Status: Reviewed & tested by the community » Fixed

Committed to HEAD after IRC approval.

Anonymous’s picture

Status: Fixed » Closed (fixed)