7 -webkit-transform: translatez(0);
12 background-color: blue;
15 #compositedInsideFixed {
16 -webkit-transform: translatez(0);
19 background-color: red;
29 background-color: cyan;
50 if (window.testRunner)
51 testRunner.dumpAsText();
54 internals.settings.setLayerSquashingEnabled(true);
58 if (!window.internals)
61 // Display the test results only after test is done so that it does not affect repaint rect results.
62 document.getElementById('testResults').style.display = "block";
64 document.getElementById('Case1').textContent = window.internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS);
67 window.scrollTo(0, 80);
68 document.getElementById('Case2').textContent = window.internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS);
73 <body onload="runTest()">
74 <div id="description">
75 <p>This scenario verifies that the cyan "container" element scrolls properly with squashing enabled.</p>
79 <div id="compositedInsideFixed"></div>
82 <div id="container"></div>
84 <div id="testResults">
85 CASE 1, original layer tree:
86 <pre id="Case1"></pre>
88 CASE 2, scrolling y to 80, the "container" element should remain positioned with respect to the scrolled document, the fixed-pos layer compensates for the new scroll position:
89 <pre id="Case2"></pre>