Update ReadMe.md
[qtwebkit.git] / LayoutTests / compositing / hidpi-non-simple-compositing-layer-with-fractional-size-and-background-expected.html
blob0d55009778086806c60e6c06bc094e375a9878d7
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>This tests that a non simple render backing layer with fractional CSS pixel size paints the background with no cruft.</title>
5 <head>
6 <style>
7 div {
8 background: green;
9 position: absolute;
10 border: 0.5px solid red;
12 </style>
13 </head>
14 <body>
15 <p id="container"></p>
16 <script>
17 var container = document.getElementById("container");
18 adjustment = 0.1;
19 w = 2; h = 2;
20 for (i = 0; i < 30; ++i) {
21 adjustment += 0.1;
22 for (j = 0; j < 40; ++j) {
23 var e = document.createElement("div");
24 e.style.top = ((w + 2) * i + j * adjustment) + "px";
25 e.style.left = ((w + 2) * j + i * adjustment) + "px";
26 e.style.width = w + "px";
27 e.style.height = h + "px";
28 container.appendChild(e);
29 w += 0.01;
30 h += 0.01;
33 </script>
34 </body>
35 </html>