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/crashtests/border-collapse-dynamic-crash.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta charset="utf-8">
<style>
#d { position: absolute; left: 0; top: 0; }
table { border-collapse: collapse; }
td { border: 1px solid black; }
.x { border-left: 5px solid red; }
</style>
<div id="d"><table id="t"></table></div>
<script>
for (let r = 0; r < 7; r++) {
let row = t.insertRow();
for (let i = 0; i < 15; i++) {
row.insertCell().textContent = "a";
}
}
onload = () => {
document.body.offsetWidth;
requestAnimationFrame(() => requestAnimationFrame(() => {
let c = t.rows[3].cells[1];
c.colSpan = 60;
c.className = "x";
t.rows[5].cells[3].firstChild.data = "bbbb";
d.style.left = "10px";
document.body.offsetWidth;
}));
};
</script>