Skip to content
Permalink
Browse files

Work around a weird computed number issue in WebKit. Fixes #5145.

  • Loading branch information
jeresig committed Dec 10, 2009
1 parent 0452428 commit 6bec6199c255b4fd3fa11b4682d97f2d0658ea4d
Showing with 2 additions and 1 deletion.
  1. +2 −1 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)

0 comments on commit 6bec619

Please sign in to comment.
You can’t perform that action at this time.