blob: 4c5bd0388929fd5bc16f58235f0e7968efe218fc [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.
window.expectedPaintInvalidationObjects = [
"LayoutBlockFlow (positioned) DIV id='target' class='green'",
function paintInvalidationTest() {
var target = document.getElementById('target');