CSS perspective not working in Firefox

后端 未结 2 807
孤街浪徒
孤街浪徒 2020-12-19 06:10

This is probably the simplest question anyone has ever asked on SO but my mind is drawing a blank this morning. Maybe I need more coffee.

Basically I\'m trying to ad

2条回答
  •  囚心锁ツ
    2020-12-19 06:56

    POSSIBLE WORKAROUND: In case this helps anyone... I just found that in Firefox you can add transform-style: inherit; to all elements between the element with perspective set and the element being transformed and you should see your transform.

    NOTE: You must set transform-style: preserve-3d; on the element with perspective set for this to work.

    This is a bit hacky but until they change the implementation this seems to be the only way I could find to do it.

提交回复
热议问题