mirror of
https://github.com/servo/servo.git
synced 2025-06-18 13:24:29 +00: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.
24 lines
524 B
HTML
24 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>
|