Chrome doesn't display text-shadow with a spread value

ε祈祈猫儿з 提交于 2019-12-08 16:39:07

问题


I have this extremely simple HTML document:

<html>
    <head>
        <title>test</title>
    </head>

    <body>
        <div style="text-shadow: 0px 0px 5px black">
            This should have a text shadow.
        </div>
    </body>
</html>

And in Chrome 12.0.742.0 (latest dev version) the text-shadow does not display at all - it looks just like normal text. If you remove the third parameter (spread) it will render, but this is useless most of the time when you don't want a 1-pixel non-blurred shadow. How do I get it to display properly? I thought my syntax might be wrong but I don't think so because only some of the shadows on this page are shown in Chrome: http://www.w3.org/Style/Examples/007/text-shadow.


回答1:


Yea, I just updated to 12.0.742.0 and noticed the shadow disappeared from my website. I'm not going to worry about it unless it stays gone in future Chrome releases.




回答2:


Taken note of on the Chromium bug tracker. I commented and linked back here. It is indeed a regression. Your CSS3 is valid.



来源:https://stackoverflow.com/questions/5749472/chrome-doesnt-display-text-shadow-with-a-spread-value

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!