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.

michael@0 1 <!DOCTYPE HTML>
michael@0 2 <html class="reftest-wait">
michael@0 3 <body>
michael@0 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"
michael@0 5 id="f" style="width:500px; height:500px; border-radius:100px; border:none;"></iframe>
michael@0 6 <script>
michael@0 7 var f = document.getElementById("f");
michael@0 8 var count = 0;
michael@0 9 function doTest() {
michael@0 10 ++count;
michael@0 11 f.contentWindow.scrollTo(0, count*20);
michael@0 12 if (count == 4) {
michael@0 13 document.documentElement.removeAttribute("class");
michael@0 14 } else {
michael@0 15 setTimeout(doTest, 20);
michael@0 16 }
michael@0 17 }
michael@0 18 document.addEventListener("MozReftestInvalidate", doTest, false);
michael@0 19 </script>
michael@0 20 </body>
michael@0 21 </html>

mercurial