Closed
Bug 236603
Opened 21 years ago
Closed 21 years ago
Floated inline element is vertically aligned below current line box
Categories
(Core :: Layout: Floats, defect)
Tracking
()
People
(Reporter: mcow, Unassigned)
Details
Given this code:
<p>Here is a line of text with a [<span style="float:right">floated
fragment</span>] in the middle</p>
Per the spec, "If there's a line box, the top of the floated box is aligned with
the top of the current line box."
http://www.w3.org/TR/2004/CR-CSS21-20040225/visuren.html#floats
Instead, Mozilla seems to align it with the top of wherever the subsequent line
box would be. Therefore, I would expect to see the rendering as:
| |
|Here is a line of text with a [] in the middle floated fragment|
| |
That is, I expect the fragment to be on the same line as the original text,
unless there is no room to fit the fragment. But Mozilla renders this:
| |
|Here is a line of text with a [] in the middle |
| floated fragment|
| |
This is true even the <span> is given an explicit width, altho I understand that
Mozilla has adopted the CSS2.1 shrink-to-fit pseudo-intrinsic width calculation.
Opera 6 & 7 handle this as expected.
Comment 1•21 years ago
|
||
Searching on "float line" shows us....
*** This bug has been marked as a duplicate of 50630 ***
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•