From 6bec6199c255b4fd3fa11b4682d97f2d0658ea4d Mon Sep 17 00:00:00 2001 From: John Resig Date: Wed, 9 Dec 2009 20:37:14 -0800 Subject: [PATCH] Work around a weird computed number issue in WebKit. Fixes #5145. --- src/support.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 2.39.5