diff options
author | Mike Sherov <mike.sherov@gmail.com> | 2012-05-24 21:39:31 -0400 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2012-05-24 21:39:31 -0400 |
commit | d5e5ce5bd006ae94e9d85949b4f7141642cebf81 (patch) | |
tree | 5c5e42a54d3d9432ad27aa670473ec56892c6fc0 /test | |
parent | 04c06e6858caca13fd9cca71ce80a1fd431f2c41 (diff) | |
download | jquery-d5e5ce5bd006ae94e9d85949b4f7141642cebf81.tar.gz jquery-d5e5ce5bd006ae94e9d85949b4f7141642cebf81.zip |
Fix #11311. Percents not pixels for top/left/bottom/right. Closes gh-793.
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/css.js | 6 |
1 files changed, 6 insertions, 0 deletions
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("<div style='position: absolute; width: 1px; height: 20px; bottom:50%;'></div>").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("<div>").appendTo("#qunit-fixture"); |