diff options
author | Mike Sherov <mike.sherov@gmail.com> | 2011-12-06 20:32:26 -0500 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2011-12-06 20:32:26 -0500 |
commit | 7f6a991313380b74d5fb18782fb6b99fd6c4a22d (patch) | |
tree | b59b466d91c929592645ef2d6a03aeb2584cba0b /test/unit | |
parent | 2c75a993be712ceb5da4eee9810f562b90fd7e23 (diff) | |
download | jquery-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.js | 7 |
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 |