layout/reftests/transform/stresstest-1.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/transform/stresstest-1.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,27 @@
     1.4 +<html class="reftest-wait">
     1.5 +  <head>
     1.6 +      <script type="application/javascript">
     1.7 +        function runtest() {
     1.8 +          var iframe = document.getElementById("test");
     1.9 +          var style = iframe.getAttribute("style");
    1.10 +          // We depend on the transform being the last rule so clip the ending ';'
    1.11 +          style = style.substring(0, style.length-1);
    1.12 +
    1.13 +          // Here, we add transform functions to explicitly undo the effects of
    1.14 +          // each already-applied transform.  This should leave us with an
    1.15 +          // effectively-untransformed iframe.
    1.16 +          style = style + " scale(0.5, 0.25) translatex(-50px) rotate(-45deg) translate(-50px, -50px) skewx(135deg);"
    1.17 +          iframe.setAttribute("style", style);
    1.18 +          document.documentElement.className = "";
    1.19 +        }
    1.20 +      </script>
    1.21 +  </head>
    1.22 +  <body>
    1.23 +    <iframe
    1.24 +      src="square.html"
    1.25 +      style="height: 200px; width: 300px; -moz-transform: skewx(45deg) translate(50px, 50px) rotate(45deg) translatex(50px) scale(2.0, 4.0);"
    1.26 +      id="test"
    1.27 +      onload="runtest();">
    1.28 +    </iframe>
    1.29 +  </body>
    1.30 +</html>

mercurial