<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script src="../../resources/run-after-layout-and-paint.js"></script>
<style>
.outer {
width: 120px;
height: 230px;
margin: 20px 60px;
border: 1px solid black;
-webkit-box-reflect: right 10px;
}
.inner {
margin: 10px;
width: 100px;
height: 100px;
background-color: green;
text-align: center;
font-size: 50pt;
-webkit-box-reflect: below 10px;
transform: rotate3d(0, 0, 1, 20deg);
will-change: transform;
}
.changed {
-webkit-transform-origin: top left;
}
</style>
<script type="text/javascript" charset="utf-8">
function doTest()
{
if (window.testRunner) {
runAfterLayoutAndPaint(function() {
document.getElementById('inner').className = 'inner composited changed';
}, true);
}
}
window.addEventListener('load', doTest, false);
</script>
</head>
<body>
<p>Left and right sides should look symmetrical.</p>
<div class="outer composited">
<div id="inner" class="inner composited">
1
</div>
</div>
</body>
</html>