From 22500d4ad2ea0b09bc9726d0d88ff9a1a67a4fcc Mon Sep 17 00:00:00 2001 From: Mark Rajcok Date: Tue, 26 Jan 2010 15:24:04 -0700 Subject: [PATCH] Reversed the logic to be correct (IE6 *ignores* the !important identifier). Moved "hack" value to be the last parameter, and renamed it "ie6_value" so as to better identify which browser the hack is for. --- .../compass/utilities/general/_hacks.sass | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/frameworks/compass/stylesheets/compass/utilities/general/_hacks.sass b/frameworks/compass/stylesheets/compass/utilities/general/_hacks.sass index ed2759f2..b10ec35d 100644 --- a/frameworks/compass/stylesheets/compass/utilities/general/_hacks.sass +++ b/frameworks/compass/stylesheets/compass/utilities/general/_hacks.sass @@ -5,11 +5,11 @@ & display: block -//** - IE6 will let the !important property win - While all the other browsers won't. - TODO: link to blog post -=bang-hack(!property, !hack_value, !value) - #{!property}: #{!hack_value} !important - #{!property}: #{!value} +//** + A hack to supply IE6 (and below) with a different property value. + See http://www.cssportal.com/css-hacks/#in_css-important +=bang-hack(!property, !value, !ie6_value) + #{!property}: #{!value} !important + #{!property}: #{!ie6_value} +