aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMike Sherov <mike.sherov@gmail.com>2012-05-24 21:39:31 -0400
committerDave Methvin <dave.methvin@gmail.com>2012-05-24 21:39:31 -0400
commitd5e5ce5bd006ae94e9d85949b4f7141642cebf81 (patch)
tree5c5e42a54d3d9432ad27aa670473ec56892c6fc0 /test
parent04c06e6858caca13fd9cca71ce80a1fd431f2c41 (diff)
downloadjquery-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.js6
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");