blob: a76cf7274ab45b423f1ca7e59d15415d95d0903e [file] [log] [blame]
<!-- Based on fast/repaint/child-of-sub-pixel-offset-composited-layer.html -->
<!DOCTYPE html>
.container {
transform: translateZ(0);
position: absolute;
top: 100px;
background-color: red;
#target {
position: absolute;
left: 0px;
width: 10px;
height: 10px;
border: 2px solid red;
} {
border-color: green;
<script src="resources/paint-invalidation-test.js" type="text/javascript"></script>
<body onload="runPaintInvalidationTest();">
<div class="container">
<div id="target">
// 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.
function paintInvalidationTest() {
var target = document.getElementById('target');