From 63aaff590cccfcad2a73d328245e8ecb9ed6e6db Mon Sep 17 00:00:00 2001 From: jaubourg Date: Wed, 16 May 2012 16:08:50 +0200 Subject: [PATCH] Makes sure child element doesn't prevent setting height to 0. Fixes failure in unit test in IE6. --- test/unit/css.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/css.js b/test/unit/css.js index a192c1b5b..1cefe8114 100644 --- a/test/unit/css.js +++ b/test/unit/css.js @@ -41,7 +41,7 @@ test("css(String|Hash)", function() { jQuery("#nothiddendiv").css( {width: 1, height: 1} ); var width = parseFloat(jQuery("#nothiddendiv").css("width")), height = parseFloat(jQuery("#nothiddendiv").css("height")); - jQuery("#nothiddendiv").css({ width: -1, height: -1 }); + jQuery("#nothiddendiv").css({ overflow:"hidden", width: -1, height: -1 }); equal( parseFloat(jQuery("#nothiddendiv").css("width")), 0, "Test negative width set to 0"); equal( parseFloat(jQuery("#nothiddendiv").css("height")), 0, "Test negative height set to 0");