aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/css.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/css.js')
-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