-
Notifications
You must be signed in to change notification settings - Fork 409
[Bug] Safari TypeError undefined #80
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
Comments
Can you provide the version of web-animations.js being used and the code that's invoking it (_triggerWebAnimation)? |
Here you go, this issue is in the Angular 2 repo, we have narrowed down the issue to animations that contains background: |
I'm such a derp, background isn't the same as background-color, even if css allows it as the shorthand and defines everything else as initial, that doesn't mean that the animation would do the same, changing from background to 'background-color' fixed the issue, however if the chrome version does work that means is the polyfill who fails to deal with such a case right? |
Thank you for the repro case, I'm able to repro this in Safari. |
Heeeyyy, how's that investigation going? does it work now with the |
In this thread angular/angular#15918 i ask for a feature where the developer gets a warning if there are any known issues with the property that is being animated. I had a hard time finding a solution to my problem until i started a trial-and-error-approach by removing stuff until i found what was causing my issue. Maybe a known issue warning should be triggered as a quick and dirty solution to this? Just to avoid unecessary frustration from developers with the same problem as I had. I know i would appreciate a feature like that. :) |
This issue is a bit old by I have a similar issue now with angular 4: |
@HarelM I am quite sure that windows Safari is using an old version of safari. That could mean that |
I'm pretty sure you are right, but I don't have a mac to test that. |
See docs/support.md The polyfill is supported on modern versions of all major browsers, including:
In particular, the polyfill requires requestAnimationFrame. If your browser does not have requestAnimationFrame, consider loading a requestAnimationFrame polyfill first (example). |
@ewilligers Thanks for the info! |
Still no luck (Safari 5 on windows 10): |
Hey @HarelM, bumped into this too. Using an unminified version of @ewilligers the fix for this didn't make it into the latest release 2.3.1, are there any plans for another release? |
Ran into the same issue as @HarelM on Safari for Windows 10. |
Safari in Windows is a really old version of the browser, so it's not that surprising. If you are trying to test your website on safari, you cannot rely on safari on Windows sadly. |
Got you, makes sense now. |
I'm getting this error on safari, the same animation works in Chrome.

The text was updated successfully, but these errors were encountered: