Closed
Bug 492314
Opened 16 years ago
Closed 16 years ago
floats are placed one line too low.
Categories
(Firefox :: General, defect)
Tracking
()
People
(Reporter: drew.devereux, Unassigned)
Details
Attachments
(1 file)
931 bytes,
text/html
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729)
This is such a basic bug that I find it hard to comprehend that it is new; yet I can't find a dup. 488725 appears related, but this has nothing to do with whitespace:nowrap. Apologies in advance if this report is stupid.
The CSS2 standard states "If inline boxes are placed on the line before a left float is encountered that fits in the remaining line box space, the left float is placed on that line, aligned with the top of the line box, and then the inline boxes already on the line are moved accordingly."
That means if you jam a float:left block into the middle of a paragraph, the block should be placed at the left margin ON THE SAME LINE. That is certainly not where Firefox is putting it. It is putting on line below.
Reproducible: Always
Steps to Reproduce:
Try this:
<html>
<body>
foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo
foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo
foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo
foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo
foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo
NING! <span style="float:left; display:block">NANG!</span> NONG!
foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo
foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo
foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo
foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo
foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo
</body>
</html>
See what I mean? Yes I know that won't validate, but the problem is there regardless.
Bug 488725 is obviously related. Possibly it is the same bug, only misdiagnosed as caused by whitespace:nowrap.
![]() |
||
Comment 1•16 years ago
|
||
This is fixed on Trunk and Firefox 3.5b4.
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
![]() |
||
Comment 2•16 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•