Compute accurate regions for touch-action
[WebKit-https.git] / LayoutTests / compositing / hidpi-simple-container-layer-on-device-pixel.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     -webkit-transform: translateZ(0);
14   }
15 </style>
16 </head>
17 <body>
18 <p id="container"></p>
19 <script>
20   var container = document.getElementById("container");
21   adjustment = 0.1;
22   for (i = 0; i < 10; ++i) {
23     adjustment+=0.1;
24     for (j = 0; j < 10; ++j) {
25       var e = document.createElement("div");
26       e.style.top = (11 * i + j * adjustment) + "px";
27       e.style.left = (11 * j + i * adjustment) + "px";
28       container.appendChild(e);
29     }
30   }
31 </script>
32 </body>
33 </html>