mirror of
https://github.com/servo/servo.git
synced 2025-10-18 01:09:16 +01:00
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.
18 lines
682 B
HTML
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>
|