Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GoogleCodeExporter opened this issue Jun 26, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant