-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Safari Bugfix: Caption jumps when hovering resize handles #24540
Conversation
Size Change: +111 B (0%) Total Size: 1.16 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like a good trade-off, great work on finally fixing this one 🎉
@jasmussen you are my hero. 🙌 Thanks for sorting this out this longstanding bug! |
My pleasure Kjell! I only wish there was a nicer workaround. I will keep Safari and the Image block in mind. The current configuration only just strikes the balance between making the caption behave predictably while keeping the markup pure, but it'd be nice if there was a better way overall. |
Fixes #15924.
There's a frustrating bug in Safari, not fixed in v14, which is tracked here: https://bugs.webkit.org/show_bug.cgi?id=187903
When you hover the resize handle of an image with a caption, the caption travels down the page:
The precise cause is a little elusive, but it appears to be related to the
table-caption
property used for the image caption, combined with the image itself reiving ananimation
and/or atransform
.This PR takes the smallest route I could think of, to improve the situation: it simplpy disables the animation in Safari using a hack documented with a comment. Safari after:
Chrome and other blink browsers are unchanged, same with Firefox. Here's Chrome:
I wish there was a better and still small fix, but I was unable to find one. Ideally this gets fixed in Safar 15, and we can remove the hack. An alternate approach is to revisit the Image block and how captions are treated, but that is a nontrivial project.