<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | |
"http://www.w3.org/TR/html4/loose.dtd"> | |
<html lang="en"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<title>Reflections on composited element</title> | |
<style type="text/css" media="screen"> | |
.reflected { | |
height: 100px; | |
width: 200px; | |
margin: 20px; | |
margin-bottom: 120px; | |
background-color: gray; | |
-webkit-box-reflect: below 2px; | |
} | |
.transformed { | |
-webkit-transform: rotate3d(0, 0, 1, 0); | |
} | |
</style> | |
</head> | |
<body> | |
<div class="transformed reflected">Here is some text</div> | |
<div id="container" class="transformed"> | |
<div class="reflected">Here is some text</div> | |
</div> | |
</body> | |
</html> |