mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Makes sure child element doesn't prevent setting height to 0. Fixes failure in unit test in IE6.
This commit is contained in:
parent
c4e22ad8b5
commit
63aaff590c
@ -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");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user