Skip to content
Permalink
Browse files

IE 9 preserves the case of the Alpha filter - maintain it in the test…

… as well.
  • Loading branch information
jeresig committed Oct 13, 2010
1 parent ec462a3 commit 9ede46b00423491fe5852b16ab0ed448e1f0f055
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/unit/css.js
@@ -145,7 +145,7 @@ if(jQuery.browser.msie) {
equals( jQuery('#foo').css('opacity'), '1', "Assert opacity is 1 when a different filter is set in IE, #1438" );

var filterVal = "progid:DXImageTransform.Microsoft.Alpha(opacity=30) progid:DXImageTransform.Microsoft.Blur(pixelradius=5)";
var filterVal2 = "progid:DXImageTransform.Microsoft.alpha(opacity=100) progid:DXImageTransform.Microsoft.Blur(pixelradius=5)";
var filterVal2 = "progid:DXImageTransform.Microsoft.Alpha(opacity=100) progid:DXImageTransform.Microsoft.Blur(pixelradius=5)";
var filterVal3 = "progid:DXImageTransform.Microsoft.Blur(pixelradius=5)";
jQuery('#foo').css("filter", filterVal);
equals( jQuery('#foo').css("filter"), filterVal, "css('filter', val) works" );
@@ -300,4 +300,4 @@ test(":visible selector works properly on children with a hidden parent (bug #45
expect(1);
jQuery('#table').css('display', 'none').html('<tr><td>cell</td><td>cell</td></tr>');
equals(jQuery('#table td:visible').length, 0, "hidden cell children not perceived as visible");
});
});

2 comments on commit 9ede46b

@jitter

This comment has been minimized.

Copy link
Contributor

@jitter jitter replied Oct 13, 2010

This change now breaks the css test Setting opacity in IE doesn't duplicate opacity filter in all(?) previous IE versions (at least in IE6/8 I can confirm it) as they return alpha in lowercase.

Does this mabye originate from her http://github.com/jquery/jquery/blob/2ef8da0924623a9bdede9eeed17ec848859844b7/src/css.js#L211?

@jeresig

This comment has been minimized.

Copy link
Member Author

@jeresig jeresig replied Oct 13, 2010

Yeah - that's where it originates from - I already reverted it in a follow-up commit that... looking at the console now... I forgot to push last night haha. Here it is anyway: 8fb4d9a

Please sign in to comment.
You can’t perform that action at this time.