Chrome 18 开发中 CSS -webkit-radial-gradient 最近侧选项的问题
closest-side
仍然是 radial-gradient
的有效选项吗?直到最新的 Chrome 开发版本(18.0.1003.1 dev)为止,以下radial-gradient
一直有效:
-webkit-radial-gradient( center -12px, circle closest-side, white 0, black 38px );
并产生了以下效果:
现在,更新到 18.0.1003.1 dev 后,它会生成以下内容:
演示:http://jsfiddle.net/ThinkingStiff/cn6C8/
Firefox、Safari 和 Opera (及其各自的前缀)仍然正常工作。其他三个选项 - closest-corner、farthest-side、
和 farthest-corner
- 仍然按预期工作,因此没有选项。
MDN 上的 radial-gradient
页面仍然显示这是正确的格式,并且仍然将 closest-side
列为有效选项。我已经得到了这种行为的确认(在下面的评论中),但我在 Chrome 论坛中找不到任何内容。这个选项是被删除了还是 Chrome 的 bug?
更新(2011-01-16):我为此创建了一个案例:http://code.google.com/p/chromium/issues/detail?id=110341
更新(2011-01-20):该案例已分配,但未验证其状态为错误。
Is closest-side
still a valid option for radial-gradient
? Up until the latest dev release of Chrome (18.0.1003.1 dev) the following radial-gradient
worked:
-webkit-radial-gradient( center -12px, circle closest-side, white 0, black 38px );
And produced this effect:
Now, after updating to 18.0.1003.1 dev, it's producing this:
Demo: http://jsfiddle.net/ThinkingStiff/cn6C8/
Firefox, Safari, and Opera (with their respective prefixes) are still working properly. The other three options -- closest-corner, farthest-side,
and farthest-corner
-- still work as expected, and so does no option.
The radial-gradient
page at MDN still shows this as the correct format and still lists closest-side
as a valid option. I've got one confirmation of this behavior (in comments below) and I can't find anything in the Chrome Forums. Is this option being removed or is this a Chrome bug?
UPDATE (2011-01-16): I've created a case for this: http://code.google.com/p/chromium/issues/detail?id=110341
UPDATE (2011-01-20): The case has been assigned, but no verification on its status as a bug.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
通过谷歌进行深入搜索,发现其他几个论坛和编码小组网站也报告了相同的错误。正如 AlexanderZ 所说,这确实是一个错误,但 Chrome 开发团队尚未对此做出官方解释或声明。
A deep search through google yielded several other forums and coding group sites where the same bug is reported. As AlexanderZ said, it is a bug indeed but there is no official explanation or statement about it from the chrome dev team yet.