When using the WebHTML transformation:
-When using DITA 1.8
A. if for a table element one or more of the colspec had a width defined the width was in html set on the indivudual TD elements.
B. if for a table element none of the colspecs had a width defined no width was applied to the output.
Result: columns have the width of their content.
-When using DITA 2.X
A. If for a table element one or more of the colspec had a width defined the width is applied to the collspec in percentages for the once not filled in.
B. If for a table element none of the colspecs have a width defined a col element is generated for each column with a percentage width.
Result: all columns being as wide as the most narrow column. example:
Code: Select all
<col style="width:14.285714285714285%" />
It's with Situation B that we mainly have an issue as the default behavior has changed and narrow columns now become as wide as the most wide column. I would assume that when in DITA the colspec has no width attribute set, this would result in a <col style="width:auto" /> (or even no cols at all if not required). I would however not expect a percentage calculation which enforces equal width to columns.
Is this desired behavior or do width attributes need to fill in differently for obtaining columns the width of their content? (in which case we need to rework our dita tables as this change in output does not seem to be backward compatible).