diff options
author | Timmy Willison <timmywillisn@gmail.com> | 2013-09-10 14:57:14 -0500 |
---|---|---|
committer | Timmy Willison <timmywillisn@gmail.com> | 2013-09-10 14:57:14 -0500 |
commit | 73fe17299a840a8a7f3ffffcac15e32a88bd3d66 (patch) | |
tree | 4110fc152f4f41b5fb53c426a01512331a20f89a /test/unit/effects.js | |
parent | ac60f1071ddb460fec6ddee1bf6edacd414c3b35 (diff) | |
download | jquery-73fe17299a840a8a7f3ffffcac15e32a88bd3d66.tar.gz jquery-73fe17299a840a8a7f3ffffcac15e32a88bd3d66.zip |
Ensure display: inline-block when animating width/height on inline elements. Fixes #14344.
Diffstat (limited to 'test/unit/effects.js')
-rw-r--r-- | test/unit/effects.js | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/test/unit/effects.js b/test/unit/effects.js index 078f29b6f..4738cb245 100644 --- a/test/unit/effects.js +++ b/test/unit/effects.js @@ -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", |