diff --git a/src/css/curCSS.js b/src/css/curCSS.js index b648b8dca..c30519d3d 100644 --- a/src/css/curCSS.js +++ b/src/css/curCSS.js @@ -44,7 +44,9 @@ function curCSS( elem, name, computed ) { } } - return ret; + // Support: IE + // IE returns zIndex value as an integer. + return ret === undefined ? ret : ret + ""; } return curCSS; diff --git a/test/unit/css.js b/test/unit/css.js index 460e5d60b..cd70adbfc 100644 --- a/test/unit/css.js +++ b/test/unit/css.js @@ -197,6 +197,16 @@ test( "css() explicit and relative values", 29, function() { equal( $elem.css("opacity"), "1", "'+=0.5' on opacity (params)" ); }); +test("css(String) where values are z-index", function() { + expect(1); + + var $elem = jQuery( "