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

Element styles removed when zooming out (targetImageClone.style.visibility = 'hidden') #41

Open
bigrepository opened this issue Apr 25, 2018 · 3 comments

Comments

@bigrepository
Copy link

An image that has element styles defined like

<img src="image.jpg" style="max-width:100%; border:1px solid #ccc" data-action="zoom"> looses it's styles when "visibility: hidden;" is removed, after the image is zoomed back out.

Instead of just removing "visibility:hidden", element styles are removed completely. I don't think this is intended behaviour.

@spinningarrow
Copy link
Owner

I'm not able to reproduce this issue. Here is a pen I created trying to reproduce it. Am I missing something?

@spinningarrow
Copy link
Owner

Closing because of inactivity. Please let me know if this is still an issue.

@zenbug
Copy link

zenbug commented Dec 14, 2019

I can reproduce this. It seems to affect images that have a width style. The image doesn't return to the defined width when it zooms out:
https://codepen.io/mikemella/pen/gObworm

@spinningarrow spinningarrow reopened this May 19, 2020
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

3 participants