[Mac] Remove backing store for layers that are outside the viewport
[WebKit-https.git] / LayoutTests / compositing / hidpi-simple-container-layer-on-device-pixel-expected.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>This tests that simple compositing container layer takes fractional device pixel into account when painting.
5 Simple and non-simple codepath should paint on the same positions.</title>
6 <head>
7 <style>
8   div {
9     background: green;
10     width: 10px;
11     height: 10px;
12     position: absolute;
13   }
14 </style>
15 </head>
16 <body>
17 <p id="container"></p>
18 <script>
19   var container = document.getElementById("container");
20   adjustment = 0.1;
21   for (i = 0; i < 10; ++i) {
22     adjustment+=0.1;
23     for (j = 0; j < 10; ++j) {
24       var e = document.createElement("div");
25       e.style.top = (11 * i + j * adjustment) + "px";
26       e.style.left = (11 * j + i * adjustment) + "px";
27       container.appendChild(e);
28     }
29   }
30 </script>
31 </body>
32 </html>