From 272b8d69dcff771ffdb61ccd33c4e83eaea8ca50 Mon Sep 17 00:00:00 2001 From: louisremi Date: Mon, 11 Apr 2011 20:33:52 +0200 Subject: replace cssPropsAware branch --- test/unit/css.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'test') 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( "
" ).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 -- cgit v1.2.3