Backface-Visibility Not Working Properly in Firefox (Works in Safari)

后端 未结 3 508
迷失自我
迷失自我 2020-12-01 23:39

I\'m having a problem with the back face-visibilty property. It works how I want it to in Safari/Chrome, but for some reason it\'s not working correctly in Firefox.

相关标签:
3条回答
  • 2020-12-01 23:58

    Add only -moz-backface-visibility: hidden; in the parent. This worked for me.

    0 讨论(0)
  • 2020-12-02 00:03

    Try putting 'backface-visibility:hidden' both on the object and its container. This is what worked for me with this bug

    0 讨论(0)
  • 2020-12-02 00:17

    This bug has been acknowledged by Mozilla.

    The fix is to add transform: rotateX(0deg) to the front and back objects.

    Adding backface-visiblity:hidden on the container, as suggested by @yalia, makes the back unresponsive in Chrome, hence that fix should be avoided.

    Here's a fiddle with the fix.

    0 讨论(0)
提交回复
热议问题