Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-position/overlay/overlay-transition-out-rendering.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>CSS Positioned Layout Module Test: 'overlay' transitioning out still rendered in top layer</title>
<link rel="match" href="green-ref.html">
<style>
#green, #red {
/* Force display:block both popover open or closed to not rely on
@starting-style or display transitions. */
display: block;
border: none;
width: 100vw;
height: 100vh;
}
#red {
background-color: red;
}
#green {
background-color: green;
}
#green.transition-enabled {
transition: overlay 60s step-end;
transition-behavior: allow-discrete;
}
</style>
<div id="red" popover="manual"></div>
<div id="green" popover="manual"></div>
<script>
red.showPopover();
green.showPopover();
document.body.offsetTop;
green.className = "transition-enabled";
green.hidePopover();
</script>