Firefox, SVG, text-decoration

2020-04-13 07:19发布

Consider the following snippet of code:

<text style="text-decoration:underline;"> Underline </text>

It renders properly for me in both the latest version of Chrome & Safari; however, it fails in the latest version of Firefox.

Question:

  • if text-decoration not part of the SVG standard?

or

  • does Firefox not support the entirety of SVG?

and lastly:

  • how do I get underline / strike through / over line in firefox SVG text given the above?

Thanks!

EDIT

Hmm, does https://bugzilla.mozilla.org/show_bug.cgi?id=317196 confirm that Firefox, in 2012, does not support SVG underline? :-)

标签: firefox svg
1条回答
再贱就再见
2楼-- · 2020-04-13 07:54

The bug you linked to is it.

And no one supports "the entirety of SVG" (at least of SVG 1.1). Chances are, no one ever will.

查看更多
登录 后发表回答