Bug 49682

Summary: table align=left will show table below other table
Product: [Applications] konqueror Reporter: Daniel Naber <misc2006>
Component: khtml rendererAssignee: Konqueror Bugs <konqueror-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: siddharth_c1
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Cropped bottom part
Cropped upper part

Description Daniel Naber 2002-10-25 17:10:53 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources

If the window is not wide enough, konqueror will show the second table below the first, while mozilla will show the second table on the right side (even for small windows). i don't know if mozilla is correct, but this affects spiegel.de.

<HTML>
<HEAD>
<TITLE>table with align=left</TITLE>
</HEAD>
<BODY>

<p>two tables with align="left":</p>

<table width="300" border="1" align="left">
<tr>	
	<td>left</td>
</tr>
</table>

<table width="300" border="1" align="left">
<tr>
	<td>right table?</td>
</tr>
</table>

</BODY>
</HTML>
Comment 1 Franz Sirl-Kernel 2003-07-08 22:42:02 UTC
This is probably the gcc-3.3+ miscompilation reported in 
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11440 
Compiling kdelibs with -fno-gcse as an additional gcc flag fixes it at least 
on powerpc-linux-gnu. 
 
Comment 2 George Staikos 2003-07-08 22:51:37 UTC
Created attachment 1971 [details]
Cropped bottom part
Comment 3 George Staikos 2003-07-08 22:52:01 UTC
Created attachment 1972 [details]
Cropped upper part
Comment 4 Stephan Kulow 2004-11-10 10:21:59 UTC
CVS commit by coolo: 

works fine (I even remember having fixed that long ago :)
BUG: 49682


  A            49682.html   1.1



Comment 5 Luciano Montanaro 2004-11-10 11:19:54 UTC
I am sorry, but I can still reproduce the bug with the test case reported. 
(I just updated khtml to be sure it is actually there).
Just to be sure there is no misunderstanding:
The 'right' table is aligned to the left when there is enough space for it
in the window, but it is moved to the bottom of the 'left' table when the window is resized to be smaller than the combined width of the two tables. 
Comment 6 Germain Garand 2005-12-09 22:28:00 UTC
SVN commit 487243 by ggarand:

implement quirky HTML alignment for tables.

BUG: 49682, 70552, 105270, 116395



 M  +4 -0      css/css_renderstyledeclarationimpl.cpp  
 M  +6 -4      css/cssparser.cpp  
 M  +4 -0      css/cssstyleselector.cpp  
 M  +8 -0      css/html4.css  
 M  +1 -4      html/html_tableimpl.cpp  
 M  +43 -21    rendering/render_block.cpp  
 M  +5 -5      rendering/render_block.h  
 M  +3 -3      rendering/render_style.h