Firefox,SVG,文字修饰 [英] Firefox, SVG, text-decoration

查看:124
本文介绍了Firefox,SVG,文字修饰的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

考虑下面的代码片段:



 < text style =text-decoration:underline;>下划线< / text> 

在最新版Chrome&苹果浏览器;然而,它在Firefox的最新版本中失败。

问题:


  • 如果文本修饰不是SVG标准的一部分?






  • Firefox不支持整个SVG吗?



最后:





  • $ b $ / $>

    谢谢!

    编辑



    嗯, https://bugzilla.mozilla.org/show_bug.cgi?id=317196 确认Firefox在2012年不支持SVG下划线? : - )

    解决方案

    你链接到的错误是这样的。

    没有人支持整个SVG(至少SVG 1.1)。有机会,没有人会。


    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? :-)

    解决方案

    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.

    这篇关于Firefox,SVG,文字修饰的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆