aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/unit/css.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/unit/css.js b/test/unit/css.js
index 018bfc942..c949ae062 100644
--- a/test/unit/css.js
+++ b/test/unit/css.js
@@ -1106,6 +1106,16 @@ asyncTest( "Make sure initialized display value for disconnected nodes is correc
jQuery._removeData( jQuery("#display")[ 0 ] );
});
+test( "show() after hide() should always set display to initial value (#14750)", 1, function() {
+ var div = jQuery( "<div />" ),
+ fixture = jQuery( "#qunit-fixture" );
+
+ fixture.append( div );
+
+ div.css( "display", "inline" ).hide().show().css( "display", "list-item" ).hide().show();
+ equal( div.css( "display" ), "list-item", "should get last set display value" );
+});
+
// Support: IE < 11, Safari < 7
// We have to jump through the hoops here in order to test work with "order" CSS property,
// that some browsers do not support. This test is not, strictly speaking, correct,