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

Using content on :hover element breaks in Safari (iOS and desktop) #51

Open
a-p-co opened this issue May 7, 2015 · 2 comments
Open

Comments

@a-p-co
Copy link

a-p-co commented May 7, 2015

I think there is no option to solve this (without changing the way buggyfill use the css content).

While the 'content' should only be used in pseudo elements, if I apply the hack on a :hover element, the animation stop working on Safari.

Here's a fiddle with the issue https://fiddle.jshell.net/nc9chuod/, is there any way to solve it?

Thanks.

@rodneyrehm
Copy link
Owner

the animation stop working on Safari.

yeah, changing the content of generated elements tends to do that.

is there any way to solve it?

besides not using the content hack? no, not at this time.

@a-p-co
Copy link
Author

a-p-co commented May 7, 2015

Oh! ok. Maybe I could make the script search in a :before pseudo-element instead of the element itself, that way it will be more natural and separated for the rest of code.

Of course, in my scenario I'm not using any :before pseudo element in the places I need the plug.

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

2 participants