Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-multicol/crashtests/block-flow-split-with-fixed-child.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta charset="utf-8">
<title>Moving fixed-position element into multi-column container should not crash</title>
<style>
.maybe-colspan:nth-last-child(even) { column-span: all; }
</style>
<div id="container" style="column-count: 2">
<div class="maybe-colspan"></div>
<span class="maybe-colspan">
<div></div>
</span>
</div>
<div id="fixed" style="position: fixed"></div>
<script>
window.addEventListener('load', function() {
document.getElementById('container').appendChild(document.getElementById('fixed'));
});
</script>