Change NetworkConnectionToWebProcess* to NetworkConnectionToWebProcess& where possible
[WebKit-https.git] / LayoutTests / fast / backgrounds / background-image-size-double-rounding.html
1 <html>
2 <head>
3 <title>This tests that background image size is rounded properly when no-repeat attribute is present.</title>
4 <style>
5   .outer {
6     position: absolute;
7     width: 10px;
8     height: 10px;
9         background-color: blue;
10   }
11
12   .inner {
13     height: 10px;
14     width: 10.5px;
15         background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACcAAAAaCAYAAAA0R0VGAAAAAXNSR0IArs4c6QAAAAlwSFlzAAAK6wAACusBgosNWgAAAq5pVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDUuNC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIgogICAgICAgICAgICB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iCiAgICAgICAgICAgIHhtbG5zOnRpZmY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vdGlmZi8xLjAvIj4KICAgICAgICAgPHhtcDpDcmVhdGVEYXRlPjIwMDgtMDktMjBUMTA6MTY6MjNaPC94bXA6Q3JlYXRlRGF0ZT4KICAgICAgICAgPHhtcDpDcmVhdG9yVG9vbD5BZG9iZSBGaXJld29ya3MgQ1MzPC94bXA6Q3JlYXRvclRvb2w+CiAgICAgICAgIDx4bXA6TW9kaWZ5RGF0ZT4yMDA4LTA5LTIwVDEzOjEyOjQ4WjwveG1wOk1vZGlmeURhdGU+CiAgICAgICAgIDxkYzpmb3JtYXQ+aW1hZ2UvcG5nPC9kYzpmb3JtYXQ+CiAgICAgICAgIDx0aWZmOk9yaWVudGF0aW9uPjE8L3RpZmY6T3JpZW50YXRpb24+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgqSlUo2AAAATUlEQVRIDe3SsQ3AMAwDQcf7j5o2dQx4hK9UnHoCxInP965/Db09tNetpVz9DjlyVaDmbI5cFag5myNXBWrO5shVgZqzOXJVoOZsrsodgj4DFBo/NegAAAAASUVORK5CYII=) no-repeat right;
16   }
17 </style>
18 </head>
19 <body>
20 <p id="container"></p>
21 <script>
22   var container = document.getElementById("container");
23   adjustment = 0.1;
24   for (i = 0; i < 20; ++i) {
25     adjustment += 0.1;
26     size = 8;
27     for (j = 0; j < 20; ++j) {
28       size += 0.1;
29       var outer = document.createElement("div");
30       outer.className = "outer";
31       outer.style.top = (20 * i + j * adjustment) + "px";
32       outer.style.left = (20 * j + i * adjustment) + "px";
33       
34       var inner = document.createElement("div");
35       inner.className = "inner";
36       inner.style.width = size + "px";
37       
38       outer.appendChild(inner);
39       container.appendChild(outer);
40     }
41   }
42 </script>
43 </body>
44 </html>