Maintain returning 0px from width/height for disconnected nodes for backwards compat, for now. Fixes #7395.
This commit is contained in:
parent
795e880bba
commit
3394d32ea7
3 changed files with 35 additions and 8 deletions
|
@ -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 });
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue