html - Bug in CSS 2.1 Table spec for computing column widths? -


the tables section in css 2.1 spec reads:

if 'table' or 'inline-table' element has 'width: auto', used width greater of table's containing block width, capmin, , min. however, if either capmin or maximum width required columns plus cell spacing or borders (max) is less of containing block, use max(max, capmin).

i believe may error, , should read:

if 'table' or 'inline-table' element has 'width: auto', used width greater of table's containing block width, capmin, , min. however, if both capmin and maximum width required columns plus cell spacing or borders (max) are less of containing block, use max(max, capmin).

the reason capmin minimum width of caption. if disregard effect of capmin, spec correctly uses maximum width of columns when width less containing block width. introducing caption minimum width in way spec worded causes maximum width of columns short-circuited when capmin alone less width of containing block.

a web search turned this link shows capmin conditions added later; perhaps error introduced @ point.

is analysis accurate?


Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -