Skip to content

Count the columns of a table by the colspans of its cells - #300

Open
eXpl0it3r wants to merge 1 commit into
masterfrom
fix/table-colspan-column-count
Open

eXpl0it3r wants to merge 1 commit into
masterfrom
fix/table-colspan-column-count

Conversation

@eXpl0it3r

Copy link
Copy Markdown
Collaborator

Description

The column count of a table without col elements was the highest number of cells in a row, so a row whose colspans add up to more columns indexed past the column widths and the whole table layout failed with an IndexOutOfRangeException. The count is the sum of the colspans now, as in HTML 4.9.12.1.

This also fixes two gaps in Spec/html.yml, their tests Colspan_AddsColumns and CellSpanningPastTheOtherRows_IsLaidOut lose their [Ignore].

Closes #47

How to test this PR?

CI should succeed, the image baselines are unchanged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Corrupted colspan makes columns appear in top left corner of document.

1 participant