hawx1993 / base2

Automatically exported from code.google.com/p/base2
1 stars 0 forks source link

getting opacity in getComputedPropertyValue of ViewCSS returns empty string on element without opacity set #143

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. var aa = random html element
2. var opacity = CSSStyleDeclaration.getPropertyValue(aa.style, 'opacity);
3. alert(opacity);

What is the expected output? What do you see instead?
alerts empty string. should alert 1

What version of the product are you using? On what operating system?
1.1 (alpha1). W7x64

Please provide any additional information below.
in the same function the code :
case "opacity":
            return value == null ? "1" : value;
should look like something like that:
case "opacity":
            return (value == null || value == '') ? "1" : value;

Original issue reported on code.google.com by daniel.t...@gmail.com on 1 Nov 2011 at 12:22