Skip to content

Commit

Permalink
Makes sure child element doesn't prevent setting height to 0. Fixes f…
Browse files Browse the repository at this point in the history
…ailure in unit test in IE6.
  • Loading branch information
jaubourg committed May 16, 2012
1 parent c4e22ad commit 63aaff5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/unit/css.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down

0 comments on commit 63aaff5

Please sign in to comment.