diff options
author | louisremi <louisremi@louisremi-laptop.(none)> | 2011-04-11 20:33:52 +0200 |
---|---|---|
committer | louisremi <louisremi@louisremi-laptop.(none)> | 2011-04-11 20:33:52 +0200 |
commit | 272b8d69dcff771ffdb61ccd33c4e83eaea8ca50 (patch) | |
tree | edc8bfd3f49fc862ef69d78a5da9897650f39eed /test | |
parent | 56ffad2dad138293c132e6ad353111bd2d1f1239 (diff) | |
download | jquery-272b8d69dcff771ffdb61ccd33c4e83eaea8ca50.tar.gz jquery-272b8d69dcff771ffdb61ccd33c4e83eaea8ca50.zip |
replace cssPropsAware branch
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/css.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/unit/css.js b/test/unit/css.js index 08f50ef25..904312be6 100644 --- a/test/unit/css.js +++ b/test/unit/css.js @@ -377,3 +377,17 @@ test("marginRight computed style (bug #3333)", function() { equals($div.css("marginRight"), "0px"); }); + +test("jQuery.cssProps behavior, (bug #8402)", function() { + var div = jQuery( "<div>" ).appendTo(document.body).css({ + position: "absolute", + top: 0, + left: 10 + }); + jQuery.cssProps.top = "left"; + equal( div.css("top"), "10px", "the fixed property is used when accessing the computed style"); + div.css("top", "100px"); + equal( div[0].style.left, "100px", "the fixed property is used when setting the style"); + // cleanup jQuery.cssProps + jQuery.cssProps.top = undefined; +});
\ No newline at end of file |