Impossible to add pseudo element to canvases?

前端 未结 1 450
天涯浪人
天涯浪人 2021-01-11 18:30

So, I\'m currently developing a map editor for a HTML5 game, and while doing so, I wanted to add some pseudo elements to canvases containing thumbnails for building blocks.

相关标签:
1条回答
  • 2021-01-11 19:14

    Replaced elements (such as canvas and img) do not currently work with pseudo-elements.

    Note. This specification does not fully define the interaction of :before and :after with replaced elements (such as IMG in HTML). This will be defined in more detail in a future specification.

    Source

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