1 <!-- This test asserts that blit-scrolling is disabled when blur is applied on a layer
2 that contains an intermediate layer which has a fixed positioned object inside.
3 One fixed black bar should be visible at the top of the page. The page should be scrolled
4 100px and no red should be visible. The rest of the page should be green.
10 if (window.testRunner)
11 testRunner.waitUntilDone();
13 <!-- Make sure the mock scrollbars are enabled after the call to overridePreference, otherwise the setting will be overwritten. -->
14 <script src="../../compositing/resources/mock_scrollbars.js"></script>
23 -webkit-filter: blur(1px);
27 /* Using very subtle grayscale to keep the green & red still visible. */
28 -webkit-filter: grayscale(0.1);
33 background-color: #000000;
39 background-color: red;
44 background-color: green;
48 <script src="../../resources/run-after-display.js"></script>
49 <script type="text/javascript">
50 function repaintTest() {
51 runAfterDisplay(function() {
52 window.scrollTo(0, 100);
53 if (window.testRunner)
54 testRunner.notifyDone();
59 <body onload="repaintTest()">
62 <div id="fixedBox"></div>
63 <div id="redBox"></div>
64 <div id="greenBox"></div>