servo/tests/ref/iframe/hide_after_load.html
Martin Robinson bc824f117c Upgrade to the latest rust-layers
This should fix a bug where hidden iframes are not properly clipped
away from the compositor scene. This commit adds a test for this
behavior.

Fixes #6849.
2015-09-01 17:57:57 -07:00

18 lines
682 B
HTML

<!DOCTYPE html>
<html class="reftest-wait">
<body style="background: green;">
<iframe style="border: 0" src="hide_after_load_inner_frame.html"></iframe>
<script type="text/javascript">
var iframe = document.getElementsByTagName('iframe')[0];
iframe.onload = function() {
iframe.style.display = "none";
// We do this in a timeout, so that the compositor has a chance
// to update the layer tree.
setTimeout(function() {
document.documentElement.classList.remove("reftest-wait");
}, 0);
}
</script>
</body>
</html>