Ensure display: inline-block when animating width/height on inline elements. Fixes #14344.

This commit is contained in:
Timmy Willison
2013-09-10 14:57:14 -05:00
parent ac60f1071d
commit 73fe17299a
2 changed files with 17 additions and 6 deletions

10
test/unit/effects.js vendored
View File

@@ -131,13 +131,17 @@ test("show(Number) - other displays", function() {
num = 0;
jQuery("#test-table").remove();
// Note: inline elements are expected to be inline-block
// because we're showing width/height
// Can't animate width/height inline
// See #14344
test = {
"div" : "block",
"p" : "block",
"a" : "inline",
"code" : "inline",
"a" : "inline-block",
"code" : "inline-block",
"pre" : "block",
"span" : "inline",
"span" : "inline-block",
"table" : old ? "block" : "table",
"thead" : old ? "block" : "table-header-group",
"tbody" : old ? "block" : "table-row-group",