mirror of
https://github.com/servo/servo
synced 2026-05-08 16:12:15 +02:00
Prior to incremental layout, the code would remove the existing construction result. However, with incremental layout the construction result is cloned rather than removed. This change ensures that the previous construction result is cleared when an element's display type changes to none.
25 lines
524 B
HTML
25 lines
524 B
HTML
<!DOCTYPE html>
|
|
<html class="reftest-wait">
|
|
<style type="text/css">
|
|
.hidden {
|
|
display: none;
|
|
}
|
|
body {
|
|
background-color: green;
|
|
}
|
|
iframe {
|
|
background-color: red;
|
|
border: 0;
|
|
}
|
|
</style>
|
|
<body>
|
|
<iframe id="iframe" src="about:blank"></iframe>
|
|
</body>
|
|
<script type="text/javascript">
|
|
window.onload = function() {
|
|
document.getElementById("iframe").classList.add("hidden");
|
|
document.documentElement.classList.remove("reftest-wait");
|
|
}
|
|
</script>
|
|
</html>
|