Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-text/text-autospace/crashtests/text-autospace-shape-cache-crash.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta charset="utf-8">
<span>る</span>
<div>X</div>
<div>X</div>
<script>
document.body.offsetHeight;
const span = document.querySelector('span');
const divs = Array.prototype.slice.call(document.querySelectorAll('div'));
for (const e of divs) {
const n = span.cloneNode(span);
e.appendChild(n);
e.offsetHeight;
}
</script>