blob: b17c41b73fffc2d6a86729e2ee5a26679b5eab0e [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 {
will-change: transform;
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>