Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
<html>
<body>
<style>
div {
position: relative;
}
span,div {
display: inline-grid;
grid-template-columns: subgrid;
}
span {
position: absolute;
}
</style>
<script>
window.addEventListener('load', () => {
const text = document.createTextNode('BAR')
span.appendChild(text)
const div = document.getElementsByTagName('div')[0];
div.appendChild(span)
})
</script>
<div>FOO</div>
</body>
</html>