Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /svg/text/reftests/text-display-contents-crash.html - WPT Dashboard Interop Dashboard
<!doctype html>
<title>Crash with dynamic creation of absolutely positioned element under display: contents in svg:text.</title>
<style>
* {
position: absolute;
}
</style>
<script>
function start () {
const text = document.getElementById('text')
div.style.display = "contents";
text.appendChild(div);
document.documentElement.getBoundingClientRect();
div.appendChild(another);
}
document.addEventListener('DOMContentLoaded', start)
</script>
<svg>
<text id='text'>