Merge branch 'bug-3333' of https://github.com/rdworth/jquery into rdworth-bug-3333

This commit is contained in:
jeresig 2011-03-24 18:58:20 -04:00
commit 1912ded3ee
3 changed files with 44 additions and 1 deletions

View 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");
});