<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<style type="text/css" media="screen"> | |
.box { | |
height: 100px; | |
width: 100px; | |
margin: 20px; | |
margin-bottom: 120px; | |
background-color: green; | |
} | |
.reflected { | |
-webkit-box-reflect: below 2px linear-gradient(transparent, white); | |
} | |
.composited { | |
will-change: transform; | |
} | |
</style> | |
</head> | |
<body> | |
<p>Reflection should be masked with gradient.</p> | |
<div class="reflected composited box"> | |
</div> | |
</body> | |
</html> |