test(layout): avoid font-dependent alignment assertion

This commit is contained in:
ldm0
2026-09-03 06:05:02 +08:00
parent e14343443d
commit 7d40042dd6
@@ -2962,7 +2962,7 @@ document.body.innerHTML = `
<table id=inner><tr id=row>
<td valign=top><span>1.</span></td>
<td valign=top><center><a><div id=arrow class=arrow></div></a></center></td>
<td valign=middle><span id=middle-content>Title</span></td>
<td valign=middle><div id=middle-content class=box></div></td>
<td valign=bottom><div id=bottom-content class=box></div></td>
</tr></table>
</td></tr></table>`;
@@ -2983,7 +2983,7 @@ const offset = id => document.getElementById(id).getBoundingClientRect().y - row
return [row.height, offset('arrow'), offset('middle-content'), offset('bottom-content')].join('|');
})()"#,
)?,
"19|3|2|9",
"19|3|4.5|9",
"nested table measurement must retain collapsed child margins and align cell content",
);
Ok::<_, anyhow::Error>(())