Jump to content

CSS Compression defeats MSIE conditionals


Recommended Posts

Hello
I set up a special css page for some MSIE glitches.
But, when I enable CSS Compression, that page is either not loaded or ignored in some way...

with CSS C:

<link href="http://mysite.xyz/themes/mytheme/cache/c2bb41e8043388c6b0c60a0f15dc7134_all.css" rel="stylesheet" type="text/css" media="all" />
<!--[if lt IE 9]>
<link href="themes/mytheme/css/global_ie.css" rel="stylesheet" type="text/css" media="all" />

(Notice the use of a full URL...)

without CSS C:

<link href="/themes/mytheme/css/global.css" rel="stylesheet" type="text/css" media="all" />
<link href="/themes/mytheme/css/modules/blockviewed/blockviewed.css" rel="stylesheet" type="text/css" media="all" />
<link href="/themes/mytheme/css/modules/blockcart/blockcart.css" rel="stylesheet" type="text/css" media="all" />
<link href="/themes/mytheme/css/modules/editorial/editorial.css" rel="stylesheet" type="text/css" media="all" />
<link href="/themes/mytheme/css/modules/blockcategories/blockcategories.css" rel="stylesheet" type="text/css" media="all" />
<link href="/themes/mytheme/css/modules/blockspecials/blockspecials.css" rel="stylesheet" type="text/css" media="all" />
<link href="/themes/mytheme/css/modules/blocknewproducts/blocknewproducts.css" rel="stylesheet" type="text/css" media="all" />
<link href="/themes/mytheme/css/modules/blockcms/blockcms.css" rel="stylesheet" type="text/css" media="all" />
<link href="/themes/mytheme/css/modules/blocktags/blocktags.css" rel="stylesheet" type="text/css" media="all" />
<link href="/modules/blocklayered/blocklayered.css" rel="stylesheet" type="text/css" media="all" />
<link href="/css/jquery-ui-1.8.10.custom.css" rel="stylesheet" type="text/css" media="all" />
<link href="/themes/mytheme/css/modules/blockuserinfo/blockuserinfo.css" rel="stylesheet" type="text/css" media="all" />
<!--[if lt IE 9]>
<link href="themes/mytheme/css/global_ie.css" rel="stylesheet" type="text/css" media="all" />



Somehow, in the first case, the CSS glitches I put in the global_ie.css file are not used.

Any way to deal with this, and allow me to use CCS compression ? (besides telling people not to use MSIE in the first place!)

Thanks

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...