Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-tables/insert-after-col.html - WPT Dashboard Interop Dashboard
<!doctype html>
<link rel="match" href="insert-after-col-ref.html">
<title>Insertion of a block after a display:table-column element</title>
<style>
.hide-desktop {
width: 0 !important;
height: 0 !important;
padding: 0 !important;
visibility: hidden !important;
margin: 0 !important;
display: table-column !important;
background: 0 !important;
content-visibility: hidden;
overflow: hidden !important;
}
.header {
height: 100px;
background-color: green;
}
</style>
<div id="container">
<div class="hide-desktop">Something something</div>
</div>
<script>
container.getBoundingClientRect();
let header = document.createElement("div");
header.className = "header";
container.appendChild(header);
</script>