Closed Bug 608561 Opened 14 years ago Closed 14 years ago

[FLOAT][FIRST-LETTER] firefox4 the floated first letter falls below, when a right floated div is around.

Categories

(Core :: Layout: Floats, defect)

Other Branch
x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 594303

People

(Reporter: hunboy, Unassigned)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; hu; rv:1.9.2.11) Gecko/20101012 Firefox/3.6.11
Build Identifier: Mozilla/5.0 (Windows NT 5.1; rv:2.0b6) Gecko/20100101 Firefox/4.0b6

In FireFox 4b6 Gecko 2.0 the floated first letter falls below, when a right floated div is above and at right side.

Reproducible: Always

Steps to Reproduce:
1. add a div float:right;width:200px;height:100px;
2. put the long text into a paragraph
3. set the :first-letter as a drop cap for the paragraph
Actual Results:  
drop cap falls below the division

Expected Results:  
stay in a drop cap place

this is a new bug, seems only for gecko 2.0 firefox4.0b6
firefox3.6 works well
i just added it fastly for fixing before the final version comes out of ff4
Version: unspecified → Other Branch
Test case ?

99% sure this is a dupe of bug 594303
Attached file testcase
Seems if the text of the parent element of the first-letter is longer than 1 line, the first-letter falls below the right-floated div. This situation is over, when the first letter is in a subelement (perhaps in a span or strong element which contains no longer text than 1 line)
The floating based on the first-letter's parent element width and not with his own width, in my experiences and as I show in the testcase.

But the calculated width for the :first-letter can't be so big. If we aspect the :first-letter as a child, it should be an inheritance bug of the calculated width value from parent, because it's actually the parent's width (what the floating algorythm sees), and not the own. Phisically it's just a pseudo element, not a real child in the DOM-tree, but must behave as a child with own width value.

this bug is only in firefox4
hi philippe!

well yes its same :) thnx for the cooperation :)
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
I've read now what David wrote over there. Really the width was the problem, what I tested basically in my testcase.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: