CSS Variables with background-image url

后端 未结 2 1617
难免孤独
难免孤独 2021-02-07 00:37

Am I misunderstanding the capabilities of css variables? I am trying to pass a background image url to a variable like this: It seems to be working fine when I pass something si

相关标签:
2条回答
  • 2021-02-07 01:07

    This was a bug, but it works now.

    0 讨论(0)
  • 2021-02-07 01:20

    This is a bug in Chrome, the code works fine in Firefox.

    You'll have to stick with absolute URLs in var() for now.

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