From 8db7d6f20b4226994e88d1cd9243743c492773f5 Mon Sep 17 00:00:00 2001 From: Michał Gołębiowski Date: Mon, 4 Mar 2013 05:20:25 +0100 Subject: Fix #13543. offsetWidth is wrong on non-1 zoom. Close gh-1194. --- test/data/support/boxSizing.html | 19 +++++++++++++++++++ test/unit/support.js | 5 +++++ 2 files changed, 24 insertions(+) create mode 100644 test/data/support/boxSizing.html (limited to 'test') diff --git a/test/data/support/boxSizing.html b/test/data/support/boxSizing.html new file mode 100644 index 000000000..2da883dc6 --- /dev/null +++ b/test/data/support/boxSizing.html @@ -0,0 +1,19 @@ + + + + + + + + + + + diff --git a/test/unit/support.js b/test/unit/support.js index 83a50f446..4754a68c9 100644 --- a/test/unit/support.js +++ b/test/unit/support.js @@ -19,6 +19,11 @@ if ( jQuery.css ) { }); } +testIframeWithCallback( "A non-1 zoom on body doesn't cause WebKit to fail box-sizing test", "support/boxSizing.html", function( boxSizing ) { + expect( 1 ); + equal( boxSizing, jQuery.support.boxSizing, "box-sizing properly detected on page with non-1 body zoom" ); +}); + testIframeWithCallback( "A background on the testElement does not cause IE8 to crash (#9823)", "support/testElementCrash.html", function() { expect( 1 ); ok( true, "IE8 does not crash" ); -- cgit v1.2.3