background-attachment fixed with transform not working in Firefox

前端 未结 3 1232
陌清茗
陌清茗 2020-12-07 00:34

CSS value transform turn off background-attachment: fixed in Firefox.

Here is the example

相关标签:
3条回答
  • 2020-12-07 00:50

    background-attachment:fixed; doesn't work when any 'transform' is applied

    and that's a bug in firefox and it is not yet fixed.

    Reference: https://bugzilla.mozilla.org/show_bug.cgi?id=1292499

    0 讨论(0)
  • 2020-12-07 00:55

    It was a common problem 2 years ago, but as far as I know, it has been solved a while ago, and now the background-attachment CSS Property is now fully supported by all browsers, according to MDN.

    0 讨论(0)
  • 2020-12-07 01:05

    This has been solved in this question.

    Long story short- use position instead of background-attachment.

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