Make sure that accessing computed CSS for elements returns 'auto' instead of '' consistently. Fixes #7337.
This commit is contained in:
parent
e377621eaf
commit
9d1bfeb7ff
2 changed files with 7 additions and 6 deletions
|
@ -13,8 +13,8 @@ test("css(String|Hash)", function() {
|
|||
|
||||
var div = jQuery( "<div>" );
|
||||
|
||||
equals( div.css("width"), "", "Width on disconnected node." );
|
||||
equals( div.css("height"), "", "Height on disconnected node." );
|
||||
equals( div.css("width"), "auto", "Width on disconnected node." );
|
||||
equals( div.css("height"), "auto", "Height on disconnected node." );
|
||||
|
||||
div.css({ width: 4, height: 4 });
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue