Closed (fixed)
Project:
Conditional Stylesheets
Version:
6.x-1.1
Component:
Documentation
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Mar 2011 at 19:35 UTC
Updated:
18 Apr 2011 at 09:31 UTC
From reading the description on the Drupal page for this module, it states:
; Set the conditional stylesheets that are processed by IE.
stylesheets-conditional[lt IE 7][all][] = ie6-and-below.css
stylesheets-conditional[IE 9][all][] = ie9.css
stylesheets-conditional[IE][print][] = ie-print.css
but I found that unless an if statement precedes the IE statements, they are not read by IE. So, the above should say instead:
; Set the conditional stylesheets that are processed by IE.
stylesheets-conditional[if lt IE 7][all][] = ie6-and-below.css
stylesheets-conditional[if IE 9][all][] = ie9.css
stylesheets-conditional[if IE][print][] = ie-print.css
Comments
Comment #1
bloke_zero commentedUseful module, terrible documentation. Looking at the front page it looks like the above would work but as is pointed out in another issue you must also swap the words 'stylesheets' and 'conditional' so it looks like this:
conditional-stylesheets[if lt IE 7][all][] = css/ie6.css
Comment #2
jedihe commentedIt seems the quick instructions in the project page were adjusted for a recent fix, but the stable version is still using the old method; that means it's necessary to use the entire expression (e.g. "if lt IE 7") at least until the new stable version gets released.
Comment #3
johnalbinIt says right on the project page:
Blargh. Apparently that warning isn't obvious enough? #1079356: Wrong instructions
I've now added the following text just below the D7 .info syntax:
Please re-open if you feel that still isn't obvious enough. Thanks. :-)