<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>16152</bug_id>
          
          <creation_ts>2007-11-26 18:42:15 -0800</creation_ts>
          <short_desc>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</short_desc>
          <delta_ts>2024-03-21 22:43:11 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>CSS</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="johnnyding">johnnyding.webkit</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>karlcow</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>62421</commentid>
    <comment_count>0</comment_count>
    <who name="johnnyding">johnnyding.webkit</who>
    <bug_when>2007-11-26 18:42:15 -0800</bug_when>
    <thetext>In IE6/7 &amp; Firefox(both 2.xx &amp; 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&apos;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&apos;s behavior to design their webpage layout, such as www.dangdang.com(China Amazon)

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

If you guys decide that WebKit will be compatible with IE/FireFox&apos;s behavior. I will send a patch to you guys for review</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62423</commentid>
    <comment_count>1</comment_count>
      <attachid>17542</attachid>
    <who name="johnnyding">johnnyding.webkit</who>
    <bug_when>2007-11-26 18:45:27 -0800</bug_when>
    <thetext>Created attachment 17542
some text  follow by floated object

The case is for above description!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62425</commentid>
    <comment_count>2</comment_count>
    <who name="Dave Hyatt">hyatt</who>
    <bug_when>2007-11-26 18:54:30 -0800</bug_when>
    <thetext>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.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62498</commentid>
    <comment_count>3</comment_count>
    <who name="Dave Hyatt">hyatt</who>
    <bug_when>2007-11-27 11:31:15 -0800</bug_when>
    <thetext>Confirming.  I think it&apos;s worth investigating how major a compatibility issue this is.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62499</commentid>
    <comment_count>4</comment_count>
    <who name="Dave Hyatt">hyatt</who>
    <bug_when>2007-11-27 11:33:46 -0800</bug_when>
    <thetext>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.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2023040</commentid>
    <comment_count>5</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2024-03-21 22:43:11 -0700</bug_when>
    <thetext>working the same everywhere</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>17542</attachid>
            <date>2007-11-26 18:45:27 -0800</date>
            <delta_ts>2007-11-26 18:45:27 -0800</delta_ts>
            <desc>some text  follow by floated object</desc>
            <filename>test_float_startpos_standard.htm</filename>
            <type>text/html</type>
            <size>569</size>
            <attacher name="johnnyding">johnnyding.webkit</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIEhUTUwgUFVCTElDICItLy9XM0MvL0RURCBIVE1MIDQuMDEgRmluYWwvL0VOIj4N
CjxodG1sPg0KPGhlYWQ+DQo8bWV0YSBodHRwLWVxdWl2PSJDb250ZW50LVR5cGUiIGNvbnRlbnQ9
InRleHQvaHRtbDsgY2hhcnNldD11dGYtOCIgLz4NCjwvaGVhZD4NCjxib2R5Pg0Kc29tZSB0ZXh0
IGFyZSBmaXJzdCA8aW1nIHNyYz0iIiB3aWR0aD0iMzAwIiBoZWlnaHQ9IjEwMCIgYm9yZGVyPSIx
IiBhbGlnbj0ibGVmdCI+IHNvbWUgdGV4dCBhcmUgZm9sbG93aW5nIGZsb2F0IG9iamVjdCBkZXBl
bmRlbnQgb24gY3VycmVudCBjb250YWluZXIncyBhdmFsaWFibGUgd2lkdGgNCjxiciBjbGVhcj0i
YWxsIj4NCg0Kc29tZSB0ZXh0IGFyZSBmaXJzdCA8aW1nIHNyYz0iIiB3aWR0aD0iMzAwIiBoZWln
aHQ9IjEwMCIgYm9yZGVyPSIxIiBzdHlsZT0iZmxvYXQ6cmlnaHQiPiBzb21lIHRleHQgYXJlIGZv
bGxvd2luZyBmbG9hdCBvYmplY3QgZGVwZW5kZW50IG9uIGN1cnJlbnQgY29udGFpbmVyJ3MgYXZh
bGlhYmxlIHdpZHRoDQo8YnIgY2xlYXI9ImFsbCI+DQoNCjxicj4NCjwvYm9keT4NCjwvaHRtbD4=
</data>

          </attachment>
      

    </bug>

</bugzilla>