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
Created attachment 17542 [details] some text follow by floated object The case is for above description!
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.
Confirming. I think it's worth investigating how major a compatibility issue this is.
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.
working the same everywhere