Update $.fn.animate to change display mode only when necessary (inline, non-floated elements), and to use a more proper display mode for those elements. Fixes #2185.
This commit is contained in:
parent
0229b83f7e
commit
0cdcef5b36
6 changed files with 146 additions and 53 deletions
|
@ -3,7 +3,7 @@ module("css");
|
|||
test("css(String|Hash)", function() {
|
||||
expect(29);
|
||||
|
||||
equals( jQuery('#main').css("display"), 'none', 'Check for css property "display"');
|
||||
equals( jQuery('#main').css("display"), 'block', 'Check for css property "display"');
|
||||
|
||||
ok( jQuery('#nothiddendiv').is(':visible'), 'Modifying CSS display: Assert element is visible');
|
||||
jQuery('#nothiddendiv').css({display: 'none'});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue