Bug 86293 - Serious bug in div placement (float: right, left) [TESTCASE]
Summary: Serious bug in div placement (float: right, left) [TESTCASE]
Status: RESOLVED NOT A BUG
Alias: None
Product: konqueror
Classification: Applications
Component: khtml (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-30 16:25 UTC by Mikolaj Machowski
Modified: 2004-07-31 06:01 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
testcase (357 bytes, text/html)
2004-07-30 16:26 UTC, Mikolaj Machowski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mikolaj Machowski 2004-07-30 16:25:17 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc3.3.1 
OS:                Linux

All divs are placed in one line, not two rows as should be.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="pl">
<head>
	<title>Testcase</title>
</head>
<body>
	<div>
		<div style="float:left"> Div left </div>
		<div style="float:right"> Div right </div>
	</div>
	<div> Regular div </div>
</body>
</html>

CVS from 24.07
Comment 1 Mikolaj Machowski 2004-07-30 16:26:06 UTC
Created attachment 6925 [details]
testcase

testcase
Comment 2 Stephan Kulow 2004-07-30 20:06:32 UTC
I'm not sure what you're seeing, but I see it rendered exactly as it's supposed to be: one floating left, one floating right and one in the middle: all in one row.
Comment 3 Mikolaj Machowski 2004-07-30 20:18:52 UTC
> I'm not sure what you're seeing, but I see it rendered exactly as it's
> supposed to be: one floating left, one floating right and one in the
> middle: all in one row.

What?????

You have

<div>

<div left/>  <div right/>

</div>

<div />

float left and right are enclosed in another div, container, whatever.

Why last div is supposed to jump _into_ already closed div???

m.

Comment 4 Stephan Kulow 2004-07-30 20:48:48 UTC
because there is no non-floating content?
Comment 5 Thiago Macieira 2004-07-30 22:04:09 UTC
Make it:

<div style="clear: both"> Regular div </div> 

And just noting that Konqueror displays the exact same way as Mozilla. This is the desired behaviour.
Comment 6 Mikolaj Machowski 2004-07-31 00:19:24 UTC
OK

Still for me it is against common sense for div to jump into inside the
same level another div...

Comment 7 Thiago Macieira 2004-07-31 06:01:26 UTC
The point is, the first div contains two elements, both of which are floats. So there is space in the middle for more stuff to be placed.

I think that, by adding a &nbsp; inside the first div but outside the sub-divs, you'd get what you want, because that would create a third, anonymous box.