Merge branch 'bug-3333' of https://github.com/rdworth/jquery into rdworth-bug-3333
[jquery.git] / test / unit / css.js
index 555f135..8ae8fcb 100644 (file)
@@ -333,3 +333,15 @@ test("internal ref to elem.runtimeStyle (bug #7608)", function () {
 
        ok( result, "elem.runtimeStyle does not throw exception" );
 });
+
+test("marginRight computed style (bug #3333)", function() {
+       expect(1);
+
+       var $div = jQuery("#foo");
+       $div.css({
+               width: "1px",
+               marginRight: 0
+       });
+
+       equals($div.css("marginRight"), "0px");
+});