Skip to content
Permalink
Browse files

Make sure that mixed case alpha filters are handled correctly in IE. …

…Fixes #5632.
  • Loading branch information
jeresig committed Sep 28, 2010
1 parent 558d96b commit 9190d4fd603884ed1debf8c0f7817d45b72e1aef
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/css.js
  2. +1 −1 test/unit/css.js
@@ -1,6 +1,6 @@
(function( jQuery ) {

var ralpha = /alpha\([^)]*\)/,
var ralpha = /alpha\([^)]*\)/i,
ropacity = /opacity=([^)]*)/,
rdashAlpha = /-([a-z])/ig,
rupper = /([A-Z])/g,
@@ -112,7 +112,7 @@ if(jQuery.browser.msie) {
jQuery('#foo').css("filter", "progid:DXImageTransform.Microsoft.Chroma(color='red');");
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 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)";
jQuery('#foo').css("filter", filterVal);
equals( jQuery('#foo').css("filter"), filterVal, "css('filter', val) works" );

0 comments on commit 9190d4f

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