<rdar://problem/9018212> Underline thickness is not uniform under non-integral scale...
[WebKit-https.git] / LayoutTests / fast / text / decorations-transformed.html
1 <body>
2     <script>
3         function addTest(scaleFactor)
4         {
5             var div = document.createElement("div");
6             div.style.float = "left";
7             div.style.marginRight = 100 * (scaleFactor - 1) + "px";
8             div.style.webkitTransform = "scale(" + scaleFactor + ")";
9             div.style.webkitTransformOrigin = "0 0";
10             div.style.textDecoration = "underline";
11             div.style.fontFamily = "ahem";
12             for (var i = 0; i < 15; ++i) {
13                 div.appendChild(document.createTextNode("\u00a0\u00a0\u00a0\u00a0"));
14                 div.appendChild(document.createElement("br"));
15             }
16             document.body.appendChild(div);
17         }
18
19         addTest(1.15);
20         addTest(1.2);
21         addTest(1.22);
22         addTest(1.3);
23         addTest(1.45);
24         addTest(1.55);
25         addTest(1.75);
26     </script>
27 </body>