-
Notifications
You must be signed in to change notification settings - Fork 0
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
Not showing icon on Safari 9 #3
Comments
Looks like it's something to do with ShadyCSS custom properties. Safari is reading animation-delay: var(--delightful-icons-duration); as an invalid property, so the delay, timing function, and durations are never applied. If I set it to something like animation-delay: 0.2s;
animation-delay: var(--delightful-icons-duration); Then Safari 9 reads the first one while other browsers read the second one for CSS properties. I really don't want to add those hard-coded defaults everywhere though. I'll try to figure out why the SVG style elements aren't being processed correctly by ShadyCSS. |
There were a few potential solutions, but I decided to go with the least cumbersome workaround to get icons displaying on Safari 9. Ultimately while Safari 9 can show the animations, the market share is so low compared to Safari 10 and 11 (4% at time of writing vs 79% for 10 and 17% for 11) that I think easier maintenance justifies the lack of animation support. This means Safari 9 will behave like IE11 and Edge. It'll show the icons, but without an animation. If you feel very passionate about Safari 9 utilizing animations, I would ask for a proposed solution that is easy to maintain and does not inflate the size of the icon sets too much. |
For record keeping and in case anyone wants to try their hand at fixing it, here are the solutions I found. Duplicate CSS propertiesDo something like animation-delay: 0.2s;
animation-delay: var(--delightful-icons-duration); Safari 9 won't evaluate the second line since it doesn't support CSS properties, but it'll use the first "default" value. Other browsers will use the second line and the property instead. We'd need to duplicate 6 properties per icon set, and deal with maintaining those properties if the CSS properties ever change. Additionally, this would kill any built-in solution for #2. The user would also be unable to choose to disable animations by setting the delay property to Wrap with
|
I am submitting a
Description
On safari 9 iPhone 6 icons are not shown at all (top right corner):
Safari 10 works like a charm.
delightful-icons version
0.1.1
Polymer version
2.0.0
Which browsers does this affect?
The text was updated successfully, but these errors were encountered: