Bug 16152 - floated box did not shift downward next line when any content in the current line before a floated box has been put into layout flow
Summary: floated box did not shift downward next line when any content in the current ...
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.4
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-26 18:42 PST by johnnyding
Modified: 2024-03-21 22:43 PDT (History)
1 user (show)

See Also:


Attachments
some text follow by floated object (569 bytes, text/html)
2007-11-26 18:45 PST, johnnyding
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description johnnyding 2007-11-26 18:42:15 PST
In IE6/7 & Firefox(both 2.xx & 3.0), when any content in the current line before a floated box is reflowed.  The floated box will always be shift downward to next line until either it fits or there are no more floats present. Test with both standard and quirk mode.

In Webkit, if sum of both width of content before floated box and width of floated box is fit current line, then both of them will be placed to current line, and the before content will placed on right side of left floated box or left side of right floated box. If not, the floated box will be shift downward to next line like other browser did.

The opera has same behavior just like Webkit.

After checking CSS V2 specification. (Chapter 9.5, paragraphs 2,3,4),  Webkit's behavior is complied with CSS specification, but since Firefox and IE did not follow this rule and some popular Chinese Websites depend IE/Firefox's behavior to design their webpage layout, such as www.dangdang.com(China Amazon)

Should WebKit be compatible with FireFox's behavior(will be against CSS Specification) or just follow standard.

If you guys decide that WebKit will be compatible with IE/FireFox's behavior. I will send a patch to you guys for review
Comment 1 johnnyding 2007-11-26 18:45:27 PST
Created attachment 17542 [details]
some text  follow by floated object

The case is for above description!
Comment 2 Dave Hyatt 2007-11-26 18:54:30 PST
We have thought about adding a quirk for this, but I am worried that at this point the addition of the quirk would break sites as well.  I think this is a WONTFIX, since Firefox and IE are clearly non-compliant with the specification.

Comment 3 Dave Hyatt 2007-11-27 11:31:15 PST
Confirming.  I think it's worth investigating how major a compatibility issue this is.
Comment 4 Dave Hyatt 2007-11-27 11:33:46 PST
One problem here is that both IE and FFX are still non-compliant even in strict mode.  This worries me, since it implies that even if we did a quirk it would not be good enough.

Comment 5 Karl Dubost 2024-03-21 22:43:11 PDT
working the same everywhere