blob: 812a9e1da8ccb075ecd4307d42f031ab183100c1 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<style>
.subPixelContainer {
left: 10.5px;
width: 100px;
height: 100px;
position: relative;
transform: translateZ(0);
}
.overflowHidden {
overflow: hidden;
}
.ref {
position: absolute;
width: 50.5px;
right: 0px;
height: 50px;
background-color: green;
}
</style>
</head>
<body>
<div>This tests that sub-pixel offsets in nested composited layers are properly accumulated. You should see no red.</div>
<div class="subPixelContainer">
<div class="ref"></div>
</div>
<div class="subPixelContainer overflowHidden">
<div class="ref"></div>
</div>