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

rotateX() rotateY() - unstable on version 13 to 15 (current) - workaround exits #14435

Open
imsys opened this issue Jan 5, 2022 · 0 comments
Labels
data:css Compat data for CSS features. https://developer.mozilla.org/docs/Web/CSS

Comments

@imsys
Copy link

imsys commented Jan 5, 2022

What information was incorrect, unhelpful, or incomplete?

rotateX() and rotateY() is not well supported in Safari version 13 to 15. (current) It has a regression bug. (I also sent a bug report to the Safari Team)

What did you expect to see?

I would expect to see a note in rotateX() rotateY() in Safari and Safari on iOS mentioning the workaround fix.

Did you test this? If so, how?

Tests: https://bafkreicfarv4knb6lpaauvodb7f5tpfjfz2s5uyl4254rud2u7ihyndl5y.ipfs.dweb.link/
mirror: https://ipfs.io/ipfs/bafkreicfarv4knb6lpaauvodb7f5tpfjfz2s5uyl4254rud2u7ihyndl5y
mirror2: https://pastebin.com/4snr8UrM

I added tilt.js to a customer website and it had bugged out in his iPad. As I don't own any Apple device, I had to use browserstack to debug it. It turns out that if there is a single element {position: sticky; z-index: -1;} in the page, it somewhat creates a conflict with the rotateX() rotateY(). The way I found to fix it is by adding -webkit-transform: translateZ(0) to the rotated object parent.

Someone else got a similar problem, but somewhat different on StackOverFlow: https://stackoverflow.com/questions/18146511/bug-in-css3-rotatey-transition-on-safari
I don't have the patience to debug that problem, but the solution to that was the same. (-webkit-transform: translateZ(0))
Seeing their problem doesn't have a position: sticky object, it makes me think there are many things that could trigger the bug.

Can you link to any release notes, bugs, pull requests, or MDN pages related to this?

I think this bug could be related to #6637

@queengooborg queengooborg added the data:css Compat data for CSS features. https://developer.mozilla.org/docs/Web/CSS label Jan 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data:css Compat data for CSS features. https://developer.mozilla.org/docs/Web/CSS
Projects
None yet
Development

No branches or pull requests

2 participants