<?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>21653</bug_id>
          
          <creation_ts>2008-10-16 13:15:10 -0700</creation_ts>
          <short_desc>whole page has incorrect layout</short_desc>
          <delta_ts>2011-10-24 08:30:16 -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>Windows XP</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc>http://video.sina.com.cn/pv/</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Anantha Keesara">anantha</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>tabatkins</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>95568</commentid>
    <comment_count>0</comment_count>
    <who name="Anantha Keesara">anantha</who>
    <bug_when>2008-10-16 13:15:10 -0700</bug_when>
    <thetext>I Steps:
 Go to http://video.sina.com.cn/pv/
 
 II Issue:
 whole page has incorrect layout
 
 III Conclusion:
 The issue is caused by the child &lt;div&gt; &apos;s style: float: left. Notice that the style=&apos;float:left&apos; is specified in the child &lt;div&gt; not the parent &lt;div&gt;, so the content after the parent &lt;div&gt;(in this case it is a table) should be rendered in a new line, however webkit/FF3 parses the code wrongly and just let the content follow the parent &lt;div&gt;, not start in a new line
 webkit/FF3 take the child&apos;s style style=&apos;float:left&apos; as the parent&apos;s style
 
 III Other Browsers:
 IE7: ok
 FF3: not ok
 
 IV Nightly tested: 37382</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95569</commentid>
    <comment_count>1</comment_count>
      <attachid>24406</attachid>
    <who name="Anantha Keesara">anantha</who>
    <bug_when>2008-10-16 13:15:12 -0700</bug_when>
    <thetext>Created attachment 24406
reduction.zip</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>489344</commentid>
    <comment_count>2</comment_count>
    <who name="Tab Atkins">tabatkins</who>
    <bug_when>2011-10-24 08:30:16 -0700</bug_when>
    <thetext>The referenced site no longer seems to have a problem, but based on the attached testcase, this is expected behavior.

Here is an inline variant of the testcase (slightly altered for readability only):

&lt;!DOCTYPE html&gt;
&lt;div id=container&gt;
  &lt;div id=float&gt;I&apos;m a float!&lt;/div&gt;
&lt;/div&gt;
&lt;div id=following&gt;I&apos;m the last thing on the page!&lt;/div&gt;
&lt;style&gt;
#container { width: 500px; border: thick dotted red; }
#float { float: left; width: 500px; height: 200px; background: silver; }
#following { width: 500px; height: 200px; background: cornflowerblue; display: table; }
&lt;/style&gt;

Because #container is not a BFC, it will not contain its float.  You can see by its border that it is zero-height.  Thus, any following content will go directly below it, *not* below the float unless the &apos;clear&apos; property is used.

(Depending on exactly how you structure the testcase, it may *look* like the content goes below the float, if the following content is not a BFC and contains text.)

As such, I&apos;m marking this as INVALID, since this is expected behavior.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>24406</attachid>
            <date>2008-10-16 13:15:12 -0700</date>
            <delta_ts>2008-10-16 13:15:12 -0700</delta_ts>
            <desc>reduction.zip</desc>
            <filename>reductions.zip</filename>
            <type>application/octet-stream</type>
            <size>469</size>
            <attacher name="Anantha Keesara">anantha</attacher>
            
              <data encoding="base64">UEsDBAoAAAAAAI2GSjkAAAAAAAAAAAAAAAALAAAAcmVkdWN0aW9ucy9QSwMEFAAAAAgAz4WHOOvV
2svbAAAAsQEAABsAAAByZWR1Y3Rpb25zL3Rlc3QtcXVyaWtzLmh0bWytUDFuAyEQ7CPlDysaV9ad
L1WcgyY/yA/ArA0SPi7cxM79PguOpRRJlwIYZrQ7szsGnJMZA1tv6PFhRERiM3btbcyZYSkA85bf
P+JFq9c8gSdssc6s6HD7aQX+RFe7vdAh2LIw9MkNT7tB/dJYiK56ChDosl8r5eOFFqyJ9eYaPcL+
ue83IhD9lI4pW+wTH/GtwbrE1Cq0VFDgeAqSaOh7RS4Xz0WrnTIjihxv3nguvEjohRD4PgHFicRF
Evoas8jVGt88OpHqHA0I9V+mjlO+/uVb7e67aasV8AVQSwECFAAKAAAAAACNhko5AAAAAAAAAAAA
AAAACwAAAAAAAAAAABAAAAAAAAAAcmVkdWN0aW9ucy9QSwECFAAUAAAACADPhYc469Xay9sAAACx
AQAAGwAAAAAAAAAAACAAAAApAAAAcmVkdWN0aW9ucy90ZXN0LXF1cmlrcy5odG1sUEsFBgAAAAAC
AAIAggAAAD0BAAAAAA==
</data>

          </attachment>
      

    </bug>

</bugzilla>