// BuildExclude
getStyles = curCSS.getStyles,
ralpha = /alpha\([^)]*\)/i,
- ropacity = /opacity\s*=\s*([^)]*)/,
+ ropacity = /opacity\s*=\s*([^)]*)/i,
// swappable if display is none or starts with table except
// "table", "table-cell", or "table-caption"
#span-14824 { display: block; }
#display { display: list-item !important; }
+
+/* fix get alpha opacity in IE8 */
+.fix-get-alpha-opacity-in-ie8 {
+ opacity: 0.5;
+ -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
+}
+
ok( false, "It did throw" );
}
});
+
+test( "get upper case alpha opacity in IE8", 1, function() {
+ var div = document.createElement( "div" ),
+ fixture = document.getElementById( "qunit-fixture" );
+
+ div.className = "fix-get-alpha-opacity-in-ie8";
+ fixture.appendChild( div );
+
+ equal( jQuery( div ).css( "opacity" ), "0.5", "get upper case alpha opacity in IE8 ok" );
+
+ fixture.removeChild( div );
+});
+
}