1 <!-- Based on compositing/repaint/fixed-pos-inside-composited-intermediate-layer.html -->
6 <script src=
"resources/paint-invalidation-test.js"></script>
12 transform: translatez(
0);
13 background-color: cyan;
16 .containerOverlapsComposited {
18 z-index:
2; /* Creates a stacking context so that the fixed-pos layer is contained instead of a sibling */
23 background-color: green;
30 background-color: lime;
38 if (window
.internals
) {
39 /* Note carefully, compositing for fixed position is _disabled_ here */
40 internals
.settings
.setPreferCompositingToLCDTextEnabled(false);
43 window
.expectedPaintInvalidationObjects
= [
44 "LayoutBlockFlow (positioned) DIV class='fixed'",
46 function paintInvalidationTest() {
47 window
.scrollTo(0, 100);
55 <body onload=
"runPaintInvalidationTest()">
57 Among other duplicate bugs: https://code.google.com/p/chromium/issues/detail?id=128375
58 A non-composited fixed-position element can get grouped into a composited container.
59 In this case, repaint invalidations were incorrectly going to the LayoutView instead
60 of the composited container. The incorrect result was that the fixed-position element
61 never repainted, and it appeared to scroll along with the composited container.
63 <div class=
"compositedBehind"> </div>
65 <div class=
"containerOverlapsComposited">
66 <div class=
"fixed"></div>