From: John Resig Date: Thu, 10 Dec 2009 04:37:14 +0000 (-0800) Subject: Work around a weird computed number issue in WebKit. Fixes #5145. X-Git-Tag: 1.4a2~54 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6bec6199c255b4fd3fa11b4682d97f2d0658ea4d;p=jquery.git Work around a weird computed number issue in WebKit. Fixes #5145. --- diff --git a/src/support.js b/src/support.js index 8e8d20e0e..91ee77d39 100644 --- a/src/support.js +++ b/src/support.js @@ -40,7 +40,8 @@ // Make sure that element opacity exists // (IE uses filter instead) - opacity: a.style.opacity === "0.55", + // Use a regex to work around a WebKit issue. See #5145 + opacity: /^0.55$/.test( a.style.opacity ), // Verify style float existence // (IE uses styleFloat instead of cssFloat)