layout/reftests/scrolling/iframe-border-radius.html

Wed, 31 Dec 2014 07:16:47 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:16:47 +0100
branch
TOR_BUG_9701
changeset 3
141e0f1194b1
permissions
-rw-r--r--

Revert simplistic fix pending revisit of Mozilla integration attempt.

     1 <!DOCTYPE HTML>
     2 <html class="reftest-wait">
     3 <body>
     4 <iframe src="data:text/html,<body style='font-size:100px; overflow:hidden; background:white;'><p>Hello<p>Kitty<p>Hello<p>Kitty<p>Hello<p>Kitty<p>Hello<p>Kitty<p>Hello<p>Kitty<p>Hello<p>Kitty"
     5         id="f" style="width:500px; height:500px; border-radius:100px; border:none;"></iframe>
     6 <script>
     7 var f = document.getElementById("f");
     8 var count = 0;
     9 function doTest() {
    10   ++count;
    11   f.contentWindow.scrollTo(0, count*20);
    12   if (count == 4) {
    13     document.documentElement.removeAttribute("class");
    14   } else {
    15     setTimeout(doTest, 20);
    16   }
    17 }
    18 document.addEventListener("MozReftestInvalidate", doTest, false);
    19 </script>
    20 </body>
    21 </html>

mercurial