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:
Colin Snover 2010-10-05 13:28:43 -05:00
parent 0229b83f7e
commit 0cdcef5b36
6 changed files with 146 additions and 53 deletions

View file

@ -102,6 +102,8 @@ div.chain.test div { background: green; }
div.chain.out { background: green; }
div.chain.out div { background: red; display: none; }
/* tests to ensure jQuery can determine the native display mode of elements
that have been set as display: none in stylesheets */
div#show-tests * { display: none; }
#nothiddendiv { font-size: 16px; }