[TESTCASE] khtml and table widths

Vadim Plessky lucy-ples at mtu-net.ru
Thu Jul 18 10:09:53 BST 2002


On Thursday 18 July 2002 11:57 am, Ladislav Strojil wrote:
|  Hi,
|  recent commits by Dirk Mueller broke table rendering for me.
|
|  See the test case at http://www.strojil.cz/khtml_testcase.html
|

Hi, recent commits by Dirk Mueller fixed several table-related bugs:

#43752: Tables: "BigFoot" testcase (tables have different width in Konqueror while should be equal)
 http://bugs.kde.org/db/43/43752.html

Bug#44155 acknowledged by developer ("Page too wide"- <PRE> tag inside table 
(stripped from http://www.gentoo.org/doc/build.html ))

There are some othe rotstanding Tables-related bugs, though
---------------
Here is a list I posted on kde-core-devel, before KDE 3.0.2 release 

#43749: Table and Cell widths: Konqueror vs. Mozilla
 http://bugs.kde.org/db/43/43749.htm

#43750: Tables: <TD width="5%"></TD> <TD width="200"></TD> rendered in a wrong wayl
 http://bugs.kde.org/db/43/43750.html

#43751: Tables: several <TD> with width in %% confuse Konqueror
 http://bugs.kde.org/db/43/43751.html

#44148: Broken layout: http://www.3com.ru/products/firewalls/ss3-firewall/ (...again tables?)
 http://bugs.kde.org/db/44/44148.html


#42638: wrong rendering on http://www.formoza.com.ru/news/index.shtml
http://bugs.kde.org/db/42/42638.html

#42639: wrong rendering on www.dlink.ru
 http://bugs.kde.org/db/42/42639.html
(most of those bugs have testcases)

also:
#43748: Tables: <THEAD> section is not visible in Konqueror 3.0.1
  http://bugs.kde.org/db/43/43748.html

|  It seems to me, that the widht is calculated by:
|  a) making columns without width specified as small as possible
|  b) taking the sum of the remaining sums and distributing the remaining
| space in specified ratios.
|
|  So if you have three columns, two with 20% and one without width
| specified, those two get 50% of what is left each.
|
|  The problem seems to be in
|  void RenderTable::calcColMinMax()
|  in khtml/rendering/render_table.cpp
|
|  This is a bug, isn't it? :-))

Ok, if you have a fix for this, which will *cure* bugs mentioned above - I will vote for your fix :-)

|
|  Cheers,
|  Lada
|
|  - --
|      ~       Ladislav Strojil, MFF UK

-- 

Vadim Plessky
http://kde2.newmail.ru  (English)
33 Window Decorations and 6 Widget Styles for KDE
http://kde2.newmail.ru/kde_themes.html
KDE mini-Themes
http://kde2.newmail.ru/themes/





More information about the kfm-devel mailing list