-
Notifications
You must be signed in to change notification settings - Fork 98
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
Test for getComputedStyle is broken in browsers that implement the current Web IDL specification #39
Comments
I believe that this is addressed in the v2 refactor (#38), which incorporates more rigorously tested polyfills, including |
Paging @WebReflection: I think this is your issue, since ie8 shims |
why is <!--[if IE 8]><script src="ie8.js"></script><![endif]--> or via CDN <!--[if IE 8]><script
src="//cdnjs.cloudflare.com/ajax/libs/ie8/0.2.2/ie8.js"
></script><![endif]--> ie8 aim is to fix IE8, not Firefox … it is not there to feature detect anything else that is not IE8 … I am not sure once |
OK, just to be clear, this has nothing to do with and I think it should be ie8 has nothing to do with this test but yes, it will patch for IE8 only |
Sorry, I should have been clear that this relates to #38. An IE conditional comment is the suggested usage, but I would prefer that aight not interfere with modern browsers even if it is included (for instance, so that users can test flags such as |
ie8 first line is I've shown you where is the problem and it's not in Last, you cannot test IE8 via any other browser different from real IE8 (tests fails in emulators, as examples, but pass as expected in real IE8) so you are free to If there's anything else I can do please let me know, again I just wanted to clarify some possible misunderstanding. Cheers |
Sorry for the confusion, @WebReflection. This will be fixed in #38. |
Fixed in #38! |
This test in computed-style.js:
is broken in browsers that implement the current Web IDL specification for Window (e.g. Firefox 32), because per that specification the property lives on the window object directly, not on the prototype.
The right test is:
which should work in both browsers that put the property on the window directly and ones that put it on the prototype.
This issue causes aight to try to use the IE-only
.currentStyle
in Firefox 32, which of course doesn't work very well.The text was updated successfully, but these errors were encountered: