メインコンテンツまでスキップ

no-table-span-overflow

<th>/<td>rowspanが、それが属する<thead><tbody><tfoot>の最後の行を越えて伸びている場合に警告します。HTML Living Standard §4.9.12は「セルは2つ以上の行グループにまたがるスロットを覆うことはできない」と定めており、ending a row groupアルゴリズムがそのようなセルを行グループの境界で切り詰めます — これはテーブルモデルエラーです。

table-row-column-alignmentルールから、no-table-cell-overlapno-empty-table-trackconsistent-table-row-lengthとともに分割されました。no-table-cell-overlapが既に報告しているテーブルに対しては、行グループの導出が信頼できなくなるため、このルールは何も報告しません。

❌ 間違ったコード例

<table>
<tbody>
<tr>
<td rowspan="3">Spanning cell</td>
</tr>
<tr>
<td>Cell</td>
</tr>
</tbody>
</table>

✅ 正しいコード例

<table>
<tbody>
<tr>
<td rowspan="2">Spanning cell</td>
</tr>
<tr>
<td>Cell</td>
</tr>
</tbody>
</table>

Interface

{
"no-table-span-overflow": boolean
}

Default Severity

error