blob: 2c5220afdb1f4cf2eb7da80df07762f1903334ee [file] [log] [blame]
<!-- This test asserts that blit-scrolling is disabled when blur is applied on a layer
that contains an intermediate layer which has a fixed positioned object inside.
One fixed black bar should be visible at the top of the page. The page should be scrolled
100px and no red should be visible. The rest of the page should be green.
<!DOCTYPE html>
if (window.testRunner)
<!-- Make sure the mock scrollbars are enabled after the call to overridePreference, otherwise the setting will be overwritten. -->
<script src="../../compositing/resources/mock_scrollbars.js"></script>
body {
margin: 0px;
border: 0px;
padding: 0px;
.blur {
filter: blur(1px);
.layer {
/* Using very subtle grayscale to keep the green & red still visible. */
filter: grayscale(0.1);
#fixedBox {
position: fixed;
background-color: #000000;
height: 100px;
width: 100%;
#redBox {
background-color: red;
height: 200px;
#greenBox {
background-color: green;
height: 1000px;
<script src="../../resources/run-after-layout-and-paint.js"></script>
<script type="text/javascript">
function repaintTest() {
runAfterLayoutAndPaint(function() {
window.scrollTo(0, 100);
if (window.testRunner)
<body onload="repaintTest()">
<div class="blur">
<div class="layer">
<div id="fixedBox"></div>
<div id="redBox"></div>
<div id="greenBox"></div>