blob: 67f68a51e5586975f48ca5c17f301cc6a55f348b [file] [log] [blame]
<html>
<head>
<title>Test - Bug #124042: [CSS Regions] Fix positioning composited layers when the region has overflow:hidden</title>
<style>
html {
-webkit-font-smoothing: none;
font-size: 16px;
}
.content {
-webkit-flow-into: theFlow;
}
.transformed {
-webkit-transform: translateZ(1px);
}
.clipping {
overflow: hidden;
}
.region {
-webkit-flow-from: theFlow;
width: 600px;
height: 300px;
}
.region, .content, .clipping, .transformed {
border: solid 4px #888;
padding: 5px 10px 15px 20px;
margin: 10px 15px 20px 25px;
}
</style>
</head>
<body>
<span class="content">some text 1.</span>
<div class="content"><div class="clipping transformed"><div class="transformed">composited</div></div></div>
<span class="content">some text 2.</span>
<div class="region"></div>
<p>Test passes if the composited layer is positioned at the same location whether the overflow:hidden is set or not.</p>
<p>The clipping layer is not the region itself. There are nested composited layers inside the region where the parent one is clipping.</p>
</body>
</html>