<!DOCTYPE html> | |
<html> | |
<head> | |
<style type="text/css" media="screen"> | |
.box { | |
height: 100px; | |
width: 100px; | |
background-color: black; | |
display: inline-block; | |
margin: 20px; | |
-webkit-box-reflect: below 0px -webkit-gradient(linear, left top, left bottom, from(transparent), to(rgba(0, 0, 0, 0.2))); | |
} | |
.transformed { | |
-webkit-transform: rotate(10deg); | |
} | |
.transformed2 { | |
-webkit-transform: skewX(10deg); | |
} | |
</style> | |
</head> | |
<body> | |
<p>You should not see any pixel artifacts around the reflections.</p> | |
<div class="box"></div> | |
<div class="transformed box"></div> | |
<div class="transformed2 box"></div> | |
</body> | |
</html> |