blob: 0ace54c52bdd99d148c8535a5538043b29559048 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<style>
h1 {
overflow: hidden;
position: relative;
display: inline-block;
width: 14px;
height: 14px;
}
span {
display: block;
position: absolute;
width: 10px;
height: 10px;
border: 2px solid red;
}
div {
padding-left: 10.5px;
position: absolute;
}
.composited {
transform: translateZ(0);
z-index: 1;
}
.test {
border: 2px solid black;
}
</style>
</head>
<body>
<p>This tests that we properly clip sub-pixel positioned composited layers. There should be no red visible.</p>
<div>
<h1 class="composited">
<span class="test"></span>
</h1>
</div>
<div>
<h1>
<span></span>
</h1>
</div>