Skip to content

Commit

Permalink
Work around a weird computed number issue in WebKit. Fixes #5145.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeresig committed Dec 10, 2009
1 parent 0452428 commit 6bec619
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/support.js
Expand Up @@ -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)
Expand Down

0 comments on commit 6bec619

Please sign in to comment.