mirror of
https://github.com/servo/servo.git
synced 2025-06-19 14:48:59 +01:00
When an iframe is created with display:none it sets the root layer to be zero width and height. When updating the rect of the iframe from layout send the entire rect rather than just the new origin, which handles the case where the iframe has been made visible and now has a non-zero rect.
20 lines
535 B
HTML
20 lines
535 B
HTML
<!DOCTYPE html>
|
|
<html class="reftest-wait">
|
|
<style type="text/css">
|
|
.hidden {
|
|
display: none;
|
|
}
|
|
iframe {
|
|
border: 0;
|
|
}
|
|
</style>
|
|
<body id="container">
|
|
<iframe id="iframe" class="hidden" src="data:text/html,%3Cbody%20style%3D%22background%3Agreen%3B%20%22%3E"></iframe>
|
|
</body>
|
|
<script type="text/javascript">
|
|
window.onload = function() {
|
|
document.getElementById("iframe").classList.remove("hidden");
|
|
document.documentElement.classList.remove("reftest-wait");
|
|
}
|
|
</script>
|
|
</html>
|