mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Made sure that css() in IE handles negative non-px values correctly. Fixes #3331.
This commit is contained in:
@@ -59,13 +59,16 @@ test("css(String|Hash)", function() {
|
||||
});
|
||||
|
||||
test("css(String, Object)", function() {
|
||||
expect(20);
|
||||
expect(21);
|
||||
ok( jQuery('#nothiddendiv').is(':visible'), 'Modifying CSS display: Assert element is visible');
|
||||
jQuery('#nothiddendiv').css("display", 'none');
|
||||
ok( !jQuery('#nothiddendiv').is(':visible'), 'Modified CSS display: Assert element is hidden');
|
||||
jQuery('#nothiddendiv').css("display", 'block');
|
||||
ok( jQuery('#nothiddendiv').is(':visible'), 'Modified CSS display: Assert element is visible');
|
||||
|
||||
jQuery("#nothiddendiv").css("top", "-1em");
|
||||
ok( jQuery("#nothiddendiv").css("top"), -16, "Check negative number in EMs." );
|
||||
|
||||
jQuery('#floatTest').css('styleFloat', 'left');
|
||||
equals( jQuery('#floatTest').css('styleFloat'), 'left', 'Modified CSS float using "styleFloat": Assert float is left');
|
||||
jQuery('#floatTest').css('cssFloat', 'right');
|
||||
|
||||
Reference in New Issue
Block a user