Closed (fixed)
Project:
Conditional Stylesheets
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
17 Sep 2009 at 16:19 UTC
Updated:
17 Jul 2024 at 06:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
johnalbinMarked #860828: Add support for non-IE browsers as a duplicate of this one.
Comment #2
ansorg commentedHow would one do this for the Drupal 7 version where there is no "conditional_styles.theme.inc" to modify?
Comment #3
quicksketchHere's a patch that does (presumably) the same thing for Drupal 7. If your stylesheets-conditional declaration in your .info file contains the string "!IE" then it will generate a conditional style that is loaded for all other browsers except IE. If you use a conditional like this, you can add CSS for both newer versions of IE and all non-IE browsers:
This will result in output like this:
Which basically means, "If this browser is a new version of IE, or not IE at all" load this content. The closing comment
<!-->ensures this stylesheet gets added by non-IE browsers which don't understand conditional comments. Since Drupal core supports this functionality, the patch is quite trivial. We'll just need to update our documentation to explain how this functionality works.Comment #5
johnalbinI didn't even know the test bot would test these. Manually testing now.
Comment #6
johnalbin#3: conditional_styles_not_ie-580440.patch queued for re-testing.
Comment #8
johnalbinFixed in 7.x-2.x.
Comment #10
astonvictor commentedthe issue was fixed.
Comment #11
astonvictor commented