Closed Bug 434181 Opened 17 years ago Closed 17 years ago

Line in floating block breaks before it reach the right edge of page

Categories

(Core :: Layout: Text and Fonts, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 349760

People

(Reporter: arai, Unassigned)

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; ja-JP-mac; rv:1.9) Gecko/2008051202 Firefox/3.0 Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; ja-JP-mac; rv:1.9) Gecko/2008051202 Firefox/3.0 Line in block besides floating block inside floating block breaks before it reach the right edge of page on Firefox 3.0 RC1. It does not happen on Firefox 2.0.0.14. Reproducible: Always Steps to Reproduce: 1. Create an HTML file containing the following HTML: <html><body> <div style="float: left; background-color: green; padding: 1em;"> This block is float. <div style="float: left; width: 100px; height: 100px; background-color: cyan;">This block is float too.</div> <div style="background-color: yellow;">This line breaks before it rearch the right edge of page.</div> </div> </body></html> 2. Open this file in Firefox 3.0 RC1 Actual Results: Line in yellow block breaks before it reach the right edge of page. (it breaks after "the" on my environment) Expected Results: Line in yellow block does not break unless it reach the right edge of page. It might be caused by patch of bug 255990.
Attached file test case
This is the result of the heuristic for intrinsic width calculation used in bug 300030 (since we no longer do layout to calculate intrinsic widths for floats). It was an expected side-effect of that bug. Note that WebKit behaves the same.
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: