1 <!-- Based on fast/repaint/child-of-sub-pixel-offset-composited-layer.html -->
7 transform: translateZ(
0);
11 background-color: red;
19 border:
2px solid red;
26 <script src=
"resources/paint-invalidation-test.js" type=
"text/javascript"></script>
28 <body onload=
"runPaintInvalidationTest();">
29 <div class=
"container">
34 // This test ensures that children of a composited element with a sub-pixel offset are properly repainted.
35 // The box should have a fully green border.
36 window
.expectedPaintInvalidationObjects
= [
37 "LayoutBlockFlow (positioned) DIV id='target' class='green'",
39 function paintInvalidationTest() {
40 var target
= document
.getElementById('target');
41 target
.classList
.add('green');