From 461a589a61cd8e489299e053e061fcf5a218cfba Mon Sep 17 00:00:00 2001 From: Divya Manian Date: Tue, 28 Jun 2011 22:19:39 -0700 Subject: [PATCH] Removing -ms-filter as it drives IE9+ crazy. plus existing filter works anyway for IE9- --- frameworks/compass/stylesheets/compass/css3/_images.scss | 5 +---- frameworks/compass/stylesheets/compass/css3/_opacity.scss | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/frameworks/compass/stylesheets/compass/css3/_images.scss b/frameworks/compass/stylesheets/compass/css3/_images.scss index c71e4346..b92ec6bd 100644 --- a/frameworks/compass/stylesheets/compass/css3/_images.scss +++ b/frameworks/compass/stylesheets/compass/css3/_images.scss @@ -83,10 +83,7 @@ @mixin filter-gradient($start-color, $end-color, $orientation: vertical) { @include has-layout; $gradient-type: if($orientation == vertical, 0, 1); - @if $legacy-support-for-ie8 { - -ms-filter: "progid:DXImageTransform.Microsoft.gradient(gradientType=#{$gradient-type}, startColorstr='#{ie-hex-str($start-color)}', endColorstr='#{ie-hex-str($end-color)}')"; - } - @if $legacy-support-for-ie6 or $legacy-support-for-ie7 { + @if $legacy-support-for-ie6 or $legacy-support-for-ie7 or $legacy-support-for-ie8 { filter: progid:DXImageTransform.Microsoft.gradient(gradientType=#{$gradient-type}, startColorstr='#{ie-hex-str($start-color)}', endColorstr='#{ie-hex-str($end-color)}'); } } diff --git a/frameworks/compass/stylesheets/compass/css3/_opacity.scss b/frameworks/compass/stylesheets/compass/css3/_opacity.scss index 1cf0a538..fc497ffe 100644 --- a/frameworks/compass/stylesheets/compass/css3/_opacity.scss +++ b/frameworks/compass/stylesheets/compass/css3/_opacity.scss @@ -6,10 +6,7 @@ // A number between 0 and 1, where 0 is transparent and 1 is opaque. @mixin opacity($opacity) { - @if $legacy-support-for-ie8 { - -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=#{round($opacity * 100)})"; - } - @if $legacy-support-for-ie6 or $legacy-support-for-ie7 { + @if $legacy-support-for-ie6 or $legacy-support-for-ie7 or $legacy-support-for-ie8 { filter: unquote("progid:DXImageTransform.Microsoft.Alpha(Opacity=#{round($opacity * 100)})"); } opacity: $opacity;