Skip to content

Commit

Permalink
Apply the workaround for the Firefox "blinking element" opacity=1 bug…
Browse files Browse the repository at this point in the history
… only to Firefox 1.5.
  • Loading branch information
madrobby committed Oct 29, 2007
1 parent bb66a5e commit 916cbba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG
@@ -1,5 +1,7 @@
*SVN*

* Apply the workaround for the Firefox "blinking element" opacity=1 bug only to Firefox 1.5. [Thomas Fuchs]

* Add event.stopped, a boolean that is set to `true` when Event#stop is called. [Andrew Dupont, sam]

* Reset the browser's dimensions to their original settings after running the DOM viewport tests. [sam]
Expand Down
2 changes: 1 addition & 1 deletion src/dom.js
Expand Up @@ -847,7 +847,7 @@ else if (Prototype.Browser.IE) {
})(Element._attributeTranslations.read.values);
}

else if (Prototype.Browser.Gecko) {
else if (Prototype.Browser.Gecko && /rv:1\.8\.0/.test(navigator.userAgent)) {
Element.Methods.setOpacity = function(element, value) {
element = $(element);
element.style.opacity = (value == 1) ? 0.999999 :
Expand Down

0 comments on commit 916cbba

Please sign in to comment.