aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorMike Sherov <mike.sherov@gmail.com>2011-12-06 20:32:26 -0500
committerDave Methvin <dave.methvin@gmail.com>2011-12-06 20:32:26 -0500
commit7f6a991313380b74d5fb18782fb6b99fd6c4a22d (patch)
treeb59b466d91c929592645ef2d6a03aeb2584cba0b /test/unit
parent2c75a993be712ceb5da4eee9810f562b90fd7e23 (diff)
downloadjquery-7f6a991313380b74d5fb18782fb6b99fd6c4a22d.tar.gz
jquery-7f6a991313380b74d5fb18782fb6b99fd6c4a22d.zip
Fix #10639. Make percent-specified margins return px values in WebKit.
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/css.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/unit/css.js b/test/unit/css.js
index 67f450408..2021d897d 100644
--- a/test/unit/css.js
+++ b/test/unit/css.js
@@ -542,4 +542,11 @@ test("Do not append px to 'fill-opacity' #9548", 1, function() {
equal( jQuery(this).css("fill-opacity"), 1, "Do not append px to 'fill-opacity'");
});
+});
+
+test("outerWidth(true) and css('margin') returning % instead of px in Webkit, see #10639", function() {
+ var container = jQuery( "<div/>" ).width(400).appendTo( "#qunit-fixture" ),
+ el = jQuery( "<div/>" ).css({ width: "50%", marginRight: "50%" }).appendTo( container );
+
+ equal( el.outerWidth(true), 400, "outerWidth(true) and css('margin') returning % instead of px in Webkit, see #10639" );
}); \ No newline at end of file