diff --git a/lib/OpenLayers/Util.js b/lib/OpenLayers/Util.js index 6dd5e4099e..11bb77cc72 100644 --- a/lib/OpenLayers/Util.js +++ b/lib/OpenLayers/Util.js @@ -171,8 +171,8 @@ OpenLayers.Util.modifyDOMElement = function(element, id, px, sz, position, element.style.overflow = overflow; } if (opacity) { - element.style.opacity = opacity; element.style.filter = 'alpha(opacity=' + (opacity * 100) + ')'; + element.style.opacity = opacity; } }; diff --git a/tests/manual/ve-opacity.html b/tests/manual/ve-opacity.html new file mode 100644 index 0000000000..8352941add --- /dev/null +++ b/tests/manual/ve-opacity.html @@ -0,0 +1,62 @@ + + + + + + + + + + +

VE Opacity

+

The overlay should have an opacity of 40%.

+
+ +