Maintain returning 0px from width/height for disconnected nodes for backwards compat, for now. Fixes #7395.

This commit is contained in:
jeresig 2010-11-09 23:29:26 -05:00
parent 795e880bba
commit 3394d32ea7
3 changed files with 35 additions and 8 deletions

View file

@ -13,8 +13,10 @@ test("css(String|Hash)", function() {
var div = jQuery( "<div>" );
equals( div.css("width"), "auto", "Width on disconnected node." );
equals( div.css("height"), "auto", "Height on disconnected node." );
// These should be "auto" (or some better value)
// temporarily provide "0px" for backwards compat
equals( div.css("width"), "0px", "Width on disconnected node." );
equals( div.css("height"), "0px", "Height on disconnected node." );
div.css({ width: 4, height: 4 });