Make some iframe reftests more robust.

This commit is contained in:
Ms2ger 2016-11-30 14:10:00 +01:00
parent b86965f394
commit 6075d0eb03
2 changed files with 8 additions and 13 deletions

View file

@ -1,14 +1,6 @@
<html class="reftest-wait">
<link rel=match href=overflow_ref.html>
<body>
<iframe src="data:text/html,%3Cdiv%20style%3D%22background%3Agreen%3B%20width%3A%20200px%3B%20height%3A%20200px%3B%22%3E%3C%2Fdiv%3E"
style="display: block; width: 108px; height: 108px; border: none">
</iframe>
<script type="text/javascript">
window.onload = function() {
document.documentElement.classList.remove("reftest-wait");
}
</script>
</div>
</body>
</html>
<iframe src="data:text/html,%3Cdiv%20style%3D%22background%3Agreen%3B%20width%3A%20200px%3B%20height%3A%20200px%3B%22%3E%3C%2Fdiv%3E"
style="display: block; width: 108px; height: 108px; border: none"
onload="document.documentElement.classList.remove('reftest-wait')">
</iframe>

View file

@ -1,4 +1,5 @@
<!DOCTYPE html>
<html class=reftest-wait>
<link rel=match href=stacking_context_ref.html>
<style>
iframe {
@ -11,4 +12,6 @@ iframe {
transform: translateX(0px); /* form a stacking context */
}
</style>
<iframe src="data:text/html,%3Cspan%3EJust%20a%20simple%20little%20iframe.%3C%2Fspan%3E">
<iframe src="data:text/html,%3Cspan%3EJust%20a%20simple%20little%20iframe.%3C%2Fspan%3E"
onload="document.documentElement.classList.remove('reftest-wait')">
</iframe>