Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Following my comment on #407 (comment)
To make the spec pass I rewrote the way width is distributed on cells with colspan > 1.
Before that it allocated space evenly, which is a problem when other cells in a table already have allocated space.
For example this table:
If "aaa" has a width of 150, "b" and "c" a width of 50, and the column widths are set to 150 and 50, then there's room for everything.
Without the patch it would allocate 150 to the first column, and 100 to the second one (total width 200 / colspan 2).
With the patch it allocates widths in 2 passes:
I made the same change for height but it probably needs a spec.
I also had to change the way extra space in table is distributed.