Tapping after CSS-based table casues an infinite loop in wordRangeFromPosition
[WebKit-https.git] / LayoutTests / compositing / parent-clipping-layer-on-subpixel-position-expected.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>This tests that when the parent container enforces clipping and it is on a subpixel position, we snap child content properly.</title>
5 <style>
6         .container {
7                 width: 15px;
8                 height: 15px;
9                 position: absolute;
10         }
11
12         .inner {
13                 width: 10px;
14                 height: 10px;
15                 border: 1px solid red;
16                 -webkit-transform: translateZ(0);
17         }
18 </style>
19 </head>
20 <body>
21 </div>
22 <script>
23         var body = document.body;
24         var x = 0;
25         var y = 0;
26         for (i = 0; i < 20; ++i) {
27             y = 0;
28                 for (j = 0; j < 20; ++j) {
29                         var container = document.createElement("div");
30                         container.style.top = 15 * i + y + "px";
31                         container.style.left = 15 * j + x + "px";
32                         container.className = "container";
33                         body.appendChild(container);
34
35                         var inner = document.createElement("div");
36                         inner.className = "inner";
37                         container.appendChild(inner);
38                         y += 0.1;
39                 }
40                 x += 0.1;
41         }
42 </script>
43 </body>
44 </html>