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

Workaround for mozilla bug doesn't work since Firefox 62 #757

Open
mikhail-polontech opened this issue Nov 23, 2020 · 0 comments
Open

Workaround for mozilla bug doesn't work since Firefox 62 #757

mikhail-polontech opened this issue Nov 23, 2020 · 0 comments

Comments

@mikhail-polontech
Copy link

mikhail-polontech commented Nov 23, 2020

Related pull request: #106

Since Firefox version 62, window.getComputedStyle() returns a CSSStyleDeclaration object with length 0 (instead of null) inside an iframe with display: none.
See this comment: https://bugzilla.mozilla.org/show_bug.cgi?id=548397#c53.

CSSStyleDeclaration object with length 0 is not a falsy value, so the previous fix does not work and vendorPrefix gets an empty string value.

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

No branches or pull requests

1 participant