aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2009-12-09 20:37:14 -0800
committerJohn Resig <jeresig@gmail.com>2009-12-09 20:37:14 -0800
commit6bec6199c255b4fd3fa11b4682d97f2d0658ea4d (patch)
tree7115ae5180b8705a965d97dd0a33c74b059b8535 /src
parent04524287d3e0112deae570ff9247c734833431bb (diff)
downloadjquery-6bec6199c255b4fd3fa11b4682d97f2d0658ea4d.tar.gz
jquery-6bec6199c255b4fd3fa11b4682d97f2d0658ea4d.zip
Work around a weird computed number issue in WebKit. Fixes #5145.
Diffstat (limited to 'src')
-rw-r--r--src/support.js3
1 files changed, 2 insertions, 1 deletions
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)