今天,-webkit-backface-visibility在Chrome中中断了吗? [英] Did -webkit-backface-visibility break today in Chrome?

查看:162
本文介绍了今天,-webkit-backface-visibility在Chrome中中断了吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有点困惑,因为我的项目昨天工作了,但今天似乎不再正常工作. (是的,我已经从git中检查了以前的版本.)

I'm a bit confused because my project worked yesterday but seems to no longer work correctly today. (Yes, I've checked previous versions from git.)

问题:以前用-webkit-backface-visibility: hidden;隐藏的一些div神奇地出现了. 我把这个问题摆成一个小提琴了:

The problem: Some divs previously hidden with -webkit-backface-visibility: hidden; magically appeared. I have isolated this issue into a fiddle:

http://jsfiddle.net/Js6cg/1/

div在Chrome中的23.0.1271.64 m处可见(错误),但在25.0.1326.0 canary中隐藏(如我所料).

The div is visible in Chrome at 23.0.1271.64 m (wrong) but hidden in 25.0.1326.0 canary (as I expected).

您能确认这确实是Chrome中的错误吗?还是我不正确地使用CSS?

(如果重要的话,我今天将我的GPU驱动程序(AMD Catalyst)从12.8更新到了12.10.)

(I've updated my GPU drivers (AMD Catalyst) from 12.8 to 12.10 today, if that's important.)

此外,展示我一直在再现的效果的网站似乎可以正常工作+-在Chrome稳定的情况下正确显示(除了忽略-webkit-perspective并设置不稳定的动画),而Chrome Canary则很好地渲染了该图像并接受了透视图.我很困惑.

Additionally, the site that demonstrates the effect I've been reproducing appears to work +- correctly at Chrome stable (except for aparrently ignoring -webkit-perspective and animating kind of choppy), while Chrome canary renders it very well and accepts the perspective. I'm confused.

推荐答案

好的,这很尴尬.

故事看起来像:我已经更新了GPU驱动程序,但是看起来我已经很久没有真正重启Chrome了.由于某种原因,在驱动程序更新后无法重新启用GPU合成,因此,一些更高级的CSS3效果(如perspectivebackface-visibility)根本不起作用,而简单的转换使用了后备CPU实现,这也使他们在演示站点上显得比较混乱.

The story looks like: I've updated the GPU drivers but looks like I haven't actually restarted Chrome for ages. For some reason, it was unable to re-enable GPU compositing after the driver update and hence some more advanced CSS3 effects (like perspective and backface-visibility) didn't work at all, while simple transforms used a fallback CPU implementation, which also made them look choppy and on the demo site.

在更新驱动程序后,我已经很好地启动了Chrome Canary,因此它在GPU合成方面没有任何问题.一个实例有效,另一个实例无效,但是版本不匹配在这里根本不重要.

I've started Chrome Canary well after the driver update, so it didn't have any issues with GPU compositing. One instance worked, another didn't, but version mismatch wasn't important here at all.

重新启动Chrome可以解决该问题.而且我要休息一下!

Restarting Chrome fixed that issue. And I'm taking a break!

这篇关于今天,-webkit-backface-visibility在Chrome中中断了吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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