mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Ensure display: inline-block when animating width/height on inline elements. Fixes #14344.
This commit is contained in:
10
test/unit/effects.js
vendored
10
test/unit/effects.js
vendored
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user