From d5e5ce5bd006ae94e9d85949b4f7141642cebf81 Mon Sep 17 00:00:00 2001 From: Mike Sherov Date: Thu, 24 May 2012 21:39:31 -0400 Subject: Fix #11311. Percents not pixels for top/left/bottom/right. Closes gh-793. --- test/unit/css.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test') diff --git a/test/unit/css.js b/test/unit/css.js index a7d16bd5a..ac531f1e0 100644 --- a/test/unit/css.js +++ b/test/unit/css.js @@ -538,6 +538,12 @@ test("can't get background-position in IE<9, see #10796", function() { } }); +test("percentage position properties in IE<9 should not be incorrectly transformed to pixels, see #11311", function() { + expect( 1 ); + var div = jQuery("
").appendTo( "#qunit-fixture" ); + ok( window.getComputedStyle || div.css( "bottom" ) === "50%", "position properties get incorrectly transformed in IE<8, see #11311" ); +}); + test("Do not append px to 'fill-opacity' #9548", 1, function() { var $div = jQuery("
").appendTo("#qunit-fixture"); -- cgit v1.2.3