当我添加透视旋转和滤镜时:blur()。
Firefox(44.0.2),Chrome(48.0.2564.116(64位)),Safari(9.0.3)对此没有任何问题。 我的Chromium版本是51.0.2666.0(64位) - Canary Build:378711,从2016年3月2日开始。我尝试了几个版本的Chromium,似乎没有版本可行。
我的设置:MacOs 10.11.3,带Retina显示屏的MacBook。
我制作了一支笔,包括截图,它应该是什么样的。 你能重现这个错误吗?你在第三个盒子上看到阴影吗?
.wrap {
perspective: 600px;
transform-style: preserve-3d;
position: relative;
}
.with--perspective:before {
transform: rotateX(90deg);
}
.with--blur:before {
filter: blur(5px);
-webkit-filter: blur(5px);
-moz-filter: blur(5px);
}
.with--changedperspective:before {
transform: rotateX(85deg);
}
/*
some stuff for this example
*/
.find-the-error {
display: flex;
padding: 50px;
}
.wrap{
display: block;
margin: 5px;
width: 240px;
background: #eaeaea;
text-align: center;
padding: 30px;
flex-basis: 25%;
}
.wrap:before {
content: '';
position: absolute;
bottom: -2rem;
left: 5%;
width: 90%;
height: 2em;
background: rgba(0,0,0,0.9);
opacity: 0.2;
}
.screenshot {
text-align: center;
img {
max-width: 100px;
}
}
<div class="find-the-error">
<div class="wrap with--perspective">
no blur <br>
perspective works
</div>
<div class="wrap with--blur">
no perspective <br>
blur works
</div>
<div class="wrap with--blur with--perspective">
adding both <br>
perspective seems to work but blur hides all (only visible in devtools)
</div>
<div class="wrap with--blur with--changedperspective">
adding a rotation of 85deg<br>
shows both, blur and perspective, but blur looks strange
</div>
</div>
<div class="screenshot">
<img width="100" height="103" title="" alt="" src="data:image/jpeg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAAA8AAD/7gAOQWRvYmUAZMAAAAAB/9sAhAAGBAQEBQQGBQUGCQYFBgkLCAYGCAsMCgoLCgoMEAwMDAwMDBAMDg8QDw4MExMUFBMTHBsbGxwfHx8fHx8fHx8fAQcHBw0MDRgQEBgaFREVGh8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fH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