1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/scrolling/iframe-border-radius.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,21 @@ 1.4 +<!DOCTYPE HTML> 1.5 +<html class="reftest-wait"> 1.6 +<body> 1.7 +<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" 1.8 + id="f" style="width:500px; height:500px; border-radius:100px; border:none;"></iframe> 1.9 +<script> 1.10 +var f = document.getElementById("f"); 1.11 +var count = 0; 1.12 +function doTest() { 1.13 + ++count; 1.14 + f.contentWindow.scrollTo(0, count*20); 1.15 + if (count == 4) { 1.16 + document.documentElement.removeAttribute("class"); 1.17 + } else { 1.18 + setTimeout(doTest, 20); 1.19 + } 1.20 +} 1.21 +document.addEventListener("MozReftestInvalidate", doTest, false); 1.22 +</script> 1.23 +</body> 1.24 +</html>