<?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>22764</bug_id>
          
          <creation_ts>2008-12-09 14:26:08 -0800</creation_ts>
          <short_desc>bottom border misaligned due to image</short_desc>
          <delta_ts>2011-05-18 03:12: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>New Bugs</component>
          <version>525.x (Safari 3.2)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc>http://www.googlelunarxprize.org/</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>HasReduction</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="jasneet">jasneet</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>eric</cc>
    
    <cc>hyatt</cc>
    
    <cc>jasneet</cc>
    
    <cc>mustaf.here</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>102014</commentid>
    <comment_count>0</comment_count>
    <who name="jasneet">jasneet</who>
    <bug_when>2008-12-09 14:26:08 -0800</bug_when>
    <thetext>I Steps:
Go to http://www.googlelunarxprize.org/

II Issue:
In right and left columns, the bottom border below rss feed subscribe is misaligned.

III Conclusion:
If we remove feed image before text &quot;Subscribe&quot;, then it works fine in webkit

IV Other Browsers:
IE7: ok
FF3: ok

V Nightly tested: 39088

Bug in Chromium : http://code.google.com/p/chromium/issues/detail?id=1438</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102015</commentid>
    <comment_count>1</comment_count>
      <attachid>25898</attachid>
    <who name="jasneet">jasneet</who>
    <bug_when>2008-12-09 14:37:04 -0800</bug_when>
    <thetext>Created attachment 25898
reduced testcase</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>403397</commentid>
    <comment_count>2</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2011-05-12 23:05:06 -0700</bug_when>
    <thetext>Our display of the test case matches Firefox.  Are we sure this a bug?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>403573</commentid>
    <comment_count>3</comment_count>
    <who name="Dave Hyatt">hyatt</who>
    <bug_when>2011-05-13 08:54:46 -0700</bug_when>
    <thetext>This doesn&apos;t look like a valid bug to me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>405564</commentid>
    <comment_count>4</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2011-05-18 00:53:03 -0700</bug_when>
    <thetext>Our current behavior matches FF4, so clearly they&apos;ve changed their behavior away from FF3.

Line height measurement is documented here:
http://www.w3.org/TR/CSS2/visudet.html#line-height

Hmmm... This section also seems relevant:

The border box of a table, a block-level replaced element, or an element in the normal flow that establishes a new block formatting context (such as an element with &apos;overflow&apos; other than &apos;visible&apos;) must not overlap the margin box of any floats in the same block formatting context as the element itself. If necessary, implementations should clear the said element by placing it below any preceding floats, but may place it adjacent to such floats if there is sufficient space. They may even make the border box of said element narrower than defined by section 10.3.3. CSS2 does not define when a UA may put said element next to the float or by how much said element may become narrower.
http://www.w3.org/TR/CSS2/visuren.html#floats</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>405566</commentid>
    <comment_count>5</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2011-05-18 00:58:19 -0700</bug_when>
    <thetext>It looks like the float overflows the &lt;div&gt; (which seems to be expected, but I haven&apos;t found the relevante CSS 2.1 text yet), but the &lt;table&gt; has an implicit clear on it.  Meaning the table is pushed down below the float, causing the gap in the border.

In general comparing with IE (especially in strict mode) is folly.  IE&apos;s rendering has historically been horribly non-standards compliant.  They were the standard for years and years, but that is no longer the case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>405568</commentid>
    <comment_count>6</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2011-05-18 01:03:37 -0700</bug_when>
    <thetext>&quot;Since a float is not in the flow, non-positioned block boxes created before and after the float box flow vertically as if the float did not exist. However, the current and subsequent line boxes created next to the float are shortened as necessary to make room for the margin box of the float.&quot;

Maybe be the relevant line of CSS 2.1 to explain that floats can overflow out of their containing blocks.

I think basically floats don&apos;t create line boxes, so they don&apos;t get included in block height calculations, thus blocks colapse to fit their lines, while floats may yet overflow those blocks.

This test case is invalid as far as I can tell.  IE&apos;s behavior is wrong.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>405569</commentid>
    <comment_count>7</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2011-05-18 01:05:54 -0700</bug_when>
    <thetext>This IE quirk is in fact explicitly mentioned in &quot;on having layout&quot; (a great read if you ever want to write a site which works in IE!):
http://www.satzansatz.de/cssd/onhavinglayout.html#clear

&quot;Floats are auto-contained by layout elements. That&apos;s one reason why most beginners struggle with their IE-build pages in a compliant browser where floats stick out of the container when not cleared.&quot;

Basically IE auto-clears floats and CSS 2.1 says not to.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>405611</commentid>
    <comment_count>8</comment_count>
    <who name="Mustafizur Rahaman (rahaman)">mustaf.here</who>
    <bug_when>2011-05-18 03:12:16 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; &quot;Since a float is not in the flow, non-positioned block boxes created before and after the float box flow vertically as if the float did not exist. However, the current and subsequent line boxes created next to the float are shortened as necessary to make room for the margin box of the float.&quot;
&gt; 
&gt; Maybe be the relevant line of CSS 2.1 to explain that floats can overflow out of their containing blocks.
&gt; 
&gt; I think basically floats don&apos;t create line boxes, so they don&apos;t get included in block height calculations, thus blocks colapse to fit their lines, while floats may yet overflow those blocks.
&gt; 
&gt; This test case is invalid as far as I can tell.  IE&apos;s behavior is wrong.

Hi Eric,

I might be wrong, but based on my investigation, I have found that floats create their own line boxes (in RenderBlock::LineBreaker::skipLeadingWhitespace, therefore they call positionNewFloatOnLine from here). But inside positionNewFloatOnLine(), I did not find any code to update block height. This could be the right behavior, but this is what I saw in the code</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>25898</attachid>
            <date>2008-12-09 14:37:04 -0800</date>
            <delta_ts>2008-12-09 14:37:04 -0800</delta_ts>
            <desc>reduced testcase</desc>
            <filename>reduced testcase.zip</filename>
            <type>application/zip</type>
            <size>2440</size>
            <attacher name="jasneet">jasneet</attacher>
            
              <data encoding="base64">UEsDBAoAAAAAAGRziTkAAAAAAAAAAAAAAAARAAAAcmVkdWNlZCB0ZXN0Y2FzZS9QSwMECgAAAAAA
HXl1OQx5YUKxAgAAsQIAABkAAAByZWR1Y2VkIHRlc3RjYXNlL2ZlZWQucG5niVBORw0KGgoAAAAN
SUhEUgAAABEAAAARCAYAAAA7bUf6AAAABGdBTUEAANbY1E9YMgAAABl0RVh0U29mdHdhcmUAQWRv
YmUgSW1hZ2VSZWFkeXHJZTwAAAJDSURBVHjarJTPaxNBFMe/M7s7m400CWobDR4E0SoI0iJF/IGn
ilC8CR6UIkIQRNBboXgSD/YPEA/tQQQP9qABRajgT1BBakEoeLDgQZJIFZuaarOb3RnfzG7SFhov
deHL7jL7PvN9895bppTCRi+O/3DZrYePV/b259Lp554QWe5wWDYDXyVmMUBFWKz59TuvyudGn1Zf
U9gvkmw70QCnGWXtHfvBbIeWfDBFQgDOAlg8gCMkureJrrNHC/cppJ+UWeNEcJ7lQmFzccK8y8Uq
wk+PEc1OgkdL4OSEcYYwkNiSS6fokwHSV1Kt7cTxBCyXYeneRfhvx4GgDnGoiNSZu7B69rQB4bJE
FJhi9JDSaw5Wn4FFZ+HsP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