SVN commit 728185 by ggarand: port WC/r16315/#8126/ patch by David Hyatt "column widths apply to the border boxes of cells" M +7 -1 render_table.cpp --- trunk/KDE/kdelibs/khtml/rendering/render_table.cpp #728184:728185 @@ -2315,8 +2315,14 @@ if (colSpan() > 1 || !w.isVariable()) return w; RenderTableCol* col = table()->colElement(_col); - if (col) + if (col) { w = col->style()->width(); + + // Column widths specified on apply to the border box of the cell. + // Percentages don't need to be handled since they're always treated this way (even when specified on the cells). + if (w.isFixed() && w.value() > 0) + w = Length(qMax(0, w.value() - borderLeft() - borderRight() - paddingLeft() - paddingRight()), Fixed); + } return w; }