blob: b9fae83d26381b31ba9b05255ad17f0858eee943 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<style>
.container {
transform: translateZ(0);
position: absolute;
top: 100px;
left:100.5px;
background-color: red;
}
#target {
position: absolute;
left: 0px;
width: 10px;
height: 10px;
border: 2px solid red;
}
#target.green {
border-color: green;
}
</style>
<script src="resources/text-based-repaint.js" type="text/javascript"></script>
</head>
<body onload="runRepaintTest();">
<div class="container">
<div id="target">
</div>
</div>
<script>
// This test ensures that children of a composited element with a sub-pixel offset are properly repainted.
// The box should have a fully green border.
if (window.testRunner)
testRunner.dumpAsTextWithPixelResults();
function repaintTest() {
var target = document.getElementById('target');
target.classList.add('green');
}
</script>