aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/effects.js
diff options
context:
space:
mode:
authorTimmy Willison <timmywillisn@gmail.com>2013-09-10 14:57:14 -0500
committerTimmy Willison <timmywillisn@gmail.com>2013-09-10 14:57:14 -0500
commit73fe17299a840a8a7f3ffffcac15e32a88bd3d66 (patch)
tree4110fc152f4f41b5fb53c426a01512331a20f89a /test/unit/effects.js
parentac60f1071ddb460fec6ddee1bf6edacd414c3b35 (diff)
downloadjquery-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.js10
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",