<?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>5789</bug_id>
          
          <creation_ts>2005-11-21 02:03:43 -0800</creation_ts>
          <short_desc>iframe with height in % within table is not rendered.</short_desc>
          <delta_ts>2010-06-11 17:22:05 -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>Layout and Rendering</component>
          <version>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>15359</dup_id>
          
          <bug_file_loc>http://www.akafoe.de</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>HasReduction, InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Roberto Avanzi">roberto.avanzi</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>alice.barraclough</cc>
    
    <cc>ap</cc>
    
    <cc>henk.kampman</cc>
    
    <cc>hyatt</cc>
    
    <cc>ian</cc>
    
    <cc>mozillabug321</cc>
    
    <cc>pedro</cc>
    
    <cc>sam</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>24346</commentid>
    <comment_count>0</comment_count>
    <who name="Roberto Avanzi">roberto.avanzi</who>
    <bug_when>2005-11-21 02:03:43 -0800</bug_when>
    <thetext>The webpage http://www.akafoe.de (anyway horribly built) is not rendered. In particular, I cannot see 
some &quot;frames&quot; that appear with Opera (9.0pr1), but &quot;cut off&quot; in the lower part, and that render fine with 
Firefox (1.5) or Camino (1.0b1).  Most likely the cause is a duplicate bug, but cannot track it down.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24396</commentid>
    <comment_count>1</comment_count>
    <who name="Joost de Valk (AlthA)">joost</who>
    <bug_when>2005-11-22 13:57:23 -0800</bug_when>
    <thetext>Confirmed, reduced and renamed, uploading testcase in a sec. </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24397</commentid>
    <comment_count>2</comment_count>
      <attachid>4770</attachid>
    <who name="Joost de Valk (AlthA)">joost</who>
    <bug_when>2005-11-22 13:58:28 -0800</bug_when>
    <thetext>Created attachment 4770
file needed for testcase

This file is needed for the testcase i&apos;ll upload in a sec.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24398</commentid>
    <comment_count>3</comment_count>
      <attachid>4771</attachid>
    <who name="Joost de Valk (AlthA)">joost</who>
    <bug_when>2005-11-22 13:59:53 -0800</bug_when>
    <thetext>Created attachment 4771
Testcase

this is a minimal testcase for the bug, using the previously uploaded file.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26886</commentid>
    <comment_count>4</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2005-12-27 16:22:19 -0800</bug_when>
    <thetext>I swear I saw a bug just like this earlier going through bugs, but I can&apos;t find it now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26925</commentid>
    <comment_count>5</comment_count>
    <who name="Joost de Valk (AlthA)">joost</who>
    <bug_when>2005-12-27 23:57:32 -0800</bug_when>
    <thetext>*** Bug 5592 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26927</commentid>
    <comment_count>6</comment_count>
    <who name="Joost de Valk (AlthA)">joost</who>
    <bug_when>2005-12-27 23:59:34 -0800</bug_when>
    <thetext>Upping the priority on this one, since even 100% height iframe don&apos;t get rendered and this bug has been 
reported on more pages, will enhance the testcase a bit in a second. </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28182</commentid>
    <comment_count>7</comment_count>
    <who name="Alice Liu">alice.barraclough</who>
    <bug_when>2006-01-10 14:03:49 -0800</bug_when>
    <thetext>&lt;rdar://problem/3184552&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37205</commentid>
    <comment_count>8</comment_count>
    <who name="Sam Weinig">sam</who>
    <bug_when>2006-03-21 15:02:44 -0800</bug_when>
    <thetext>This is actually a bug for all replaced elements (subclasses of RenderReplaced in the the code) in webcore, including images.  It seems to stem from the fact that we do not correctly honor the scenerio when a percentage height of an object depends on its containing blocks height, which in turn can only be calculated using the content height of the inner object.  My reading of the correct behavior is to have the percentage height compute to the value of &apos;auto&apos; and then perceed as normal (in the case of an image where there is an intrinsic width and height, by using the specified width in conjuction with the intrinsic ratio (h/w) to calculate the height, or with an iframe, by setting the height to 150px), as can be seen in the section 10.5 of the CSS 2.1 spec. (http://www.w3.org/TR/CSS21/visudet.html#the-height-property).  

Sidenote:  Firefoxes behavior here does not conform with what I am interpreting the spec says, but instead uses the percentage value given to height to give a computed value that is that percent of the size that it should be.  I don&apos;t know what to make of that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37206</commentid>
    <comment_count>9</comment_count>
      <attachid>7222</attachid>
    <who name="Sam Weinig">sam</who>
    <bug_when>2006-03-21 15:06:02 -0800</bug_when>
    <thetext>Created attachment 7222
image testcase

test case with image instread of iframe</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37209</commentid>
    <comment_count>10</comment_count>
    <who name="Sam Weinig">sam</who>
    <bug_when>2006-03-21 15:11:33 -0800</bug_when>
    <thetext>Another thing I should mention is that since this only occurs when the height of the containing block is base on the height of its contents, setting a height for the &lt;td&gt; cell in which the image or iframe resides, causes the problem to disappear. </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37372</commentid>
    <comment_count>11</comment_count>
    <who name="Dave Hyatt">hyatt</who>
    <bug_when>2006-03-22 15:54:05 -0800</bug_when>
    <thetext>This should not be p1.  Putting in p2.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37373</commentid>
    <comment_count>12</comment_count>
    <who name="Dave Hyatt">hyatt</who>
    <bug_when>2006-03-22 15:54:43 -0800</bug_when>
    <thetext>P1 = crashers/regressions. :)
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37706</commentid>
    <comment_count>13</comment_count>
      <attachid>7342</attachid>
    <who name="Sam Weinig">sam</who>
    <bug_when>2006-03-27 15:15:14 -0800</bug_when>
    <thetext>Created attachment 7342
patch

This patch matches the horizontal behavior and in addition to the new test case in the patch, changes the following test cases:

fast/replaced/width100percent.html
tables/mozilla/bugs/bug137388-2.html
tables/mozilla_expected_failures/bugs/bug137388-1.html

The last two, however, still do not display correctly as they are missing the requisite files.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39577</commentid>
    <comment_count>14</comment_count>
      <attachid>7342</attachid>
    <who name="Dave Hyatt">hyatt</who>
    <bug_when>2006-04-17 17:47:53 -0700</bug_when>
    <thetext>Comment on attachment 7342
patch

Seems like this will do the wrong thing when a height of 0px is explicitly specified.

&lt;div style=&quot;height:0px&quot;&gt;&lt;img style=&quot;height:50%&quot;&gt;&lt;/div&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40063</commentid>
    <comment_count>15</comment_count>
    <who name="Sam Weinig">sam</who>
    <bug_when>2006-04-21 13:45:49 -0700</bug_when>
    <thetext>(In reply to comment #14)

Hyatt,
Your absolutly correct that a container height of 0px would result in the incorrect behavior.  This was done to match the horizontal behavior which is also wrong.  Just test the horizontal corollary to your example,

&lt;div style=&quot;width: 0px&quot;&gt;&lt;img style=&quot;height:50%&quot;&gt;&lt;/div&gt;

and notice that the image is not 0 width.

A better/correct behavior would be to check if the containing block has a non-auto height instead of a positive height.  Do you think that width should be changed as well?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47545</commentid>
    <comment_count>16</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2006-11-02 10:58:15 -0800</bug_when>
    <thetext>*** Bug 10643 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71532</commentid>
    <comment_count>17</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2008-02-22 16:47:05 -0800</bug_when>
    <thetext>Most test cases in this bug were fixed by Bug 15359.

Sam&apos;s test case in Comment #15 doesn&apos;t render zero-width, but it does render the same in WebKit r30458 as in Opera 9.2x, Firefox 2 and Firefox 3.

I suggest closing this as RESOLVED/FIXED (or marking a duplicate of Bug 15359).

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>237169</commentid>
    <comment_count>18</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2010-06-11 17:22:05 -0700</bug_when>
    <thetext>As David said. Please file separate bugs for any remaining issues, if any.

*** This bug has been marked as a duplicate of bug 15359 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>4770</attachid>
            <date>2005-11-22 13:58:28 -0800</date>
            <delta_ts>2005-11-22 13:58:28 -0800</delta_ts>
            <desc>file needed for testcase</desc>
            <filename>testcase2.html</filename>
            <type>text/html</type>
            <size>114</size>
            <attacher name="Joost de Valk (AlthA)">joost</attacher>
            
              <data encoding="base64">PGh0bWw+Cjxib2R5PgoJPGRpdiBzdHlsZT0id2lkdGg6IDQwMHB4OyBoZWlnaHQ6IDQwMHB4OyBi
YWNrZ3JvdW5kLWNvbG9yOiAjRjAwOyI+CgkJJm5ic3A7Cgk8L2Rpdj4KPC9ib2R5Pgo8L2h0bWw+
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>4771</attachid>
            <date>2005-11-22 13:59:53 -0800</date>
            <delta_ts>2005-11-22 13:59:53 -0800</delta_ts>
            <desc>Testcase</desc>
            <filename>www.akafoe.de.html</filename>
            <type>text/html</type>
            <size>315</size>
            <attacher name="Joost de Valk (AlthA)">joost</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIEhUTUwgUFVCTElDICItLy9XM0MvL0RURCBIVE1MIDQuMDEgVHJhbnNpdGlvbmFs
Ly9FTiI+CjxodG1sPgo8aGVhZD4KPC9oZWFkPgo8Ym9keT4KICAgIDx0YWJsZT4KICAgICAgICA8
dHI+CiAgICAgICAgICAgIDx0ZD4KICAgICAgICAgICAgICAgIDxpZnJhbWUgaGVpZ2h0PSI5MCUi
IHdpZHRoPSI2MDAiIHNyYz0iaHR0cDovL2J1Z3ppbGxhLm9wZW5kYXJ3aW4ub3JnL2F0dGFjaG1l
bnQuY2dpP2lkPTQ3NzAiPjwvaWZyYW1lPgogICAgICAgICAgICA8L3RkPgogICAgICAgIDwvdHI+
CiAgICA8L3RhYmxlPgo8L2JvZHk+CjwvaHRtbD4K
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>7222</attachid>
            <date>2006-03-21 15:06:02 -0800</date>
            <delta_ts>2006-03-21 15:06:02 -0800</delta_ts>
            <desc>image testcase</desc>
            <filename>percent-height-in-table-cell.html</filename>
            <type>text/html</type>
            <size>297</size>
            <attacher name="Sam Weinig">sam</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIEhUTUwgUFVCTElDICItLy9XM0MvL0RURCBIVE1MIDQuMDEgVHJhbnNpdGlvbmFs
Ly9FTiI+CjxodG1sPgo8aGVhZD4KPC9oZWFkPgo8Ym9keT4KICAgIDx0YWJsZT4KICAgICAgICA8
dHI+CiAgICAgICAgICAgIDx0ZD4KICAgICAgICAgICAgICAgIDxpbWcgaGVpZ2h0PSI5MCUiIHdp
ZHRoPSI2MDBweCIgc3JjPSJodHRwOi8vd3d3Lmdvb2dsZS5jb20vaW50bC9lbi9pbWFnZXMvbG9n
by5naWYiPgogICAgICAgICAgICA8L3RkPgogICAgICAgIDwvdHI+CiAgICA8L3RhYmxlPgo8L2Jv
ZHk+CjwvaHRtbD4K
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>7342</attachid>
            <date>2006-03-27 15:15:14 -0800</date>
            <delta_ts>2010-06-10 15:29:17 -0700</delta_ts>
            <desc>patch</desc>
            <filename>real3-27.diff</filename>
            <type>text/plain</type>
            <size>2649</size>
            <attacher name="Sam Weinig">sam</attacher>
            
              <data encoding="base64">SW5kZXg6IExheW91dFRlc3RzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBMYXlvdXRUZXN0cy9D
aGFuZ2VMb2cJKHJldmlzaW9uIDEzNDk5KQorKysgTGF5b3V0VGVzdHMvQ2hhbmdlTG9nCSh3b3Jr
aW5nIGNvcHkpCkBAIC0xLDMgKzEsMTIgQEAKKzIwMDYtMDMtMjcgIFNhbSBXZWluaWcgIDxzYW0u
d2VpbmlnQGdtYWlsLmNvbT4KKworICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4K
KworICAgICAgICAtIHRlc3QgZm9yIDxodHRwOi8vYnVnemlsbGEub3BlbmRhcndpbi5vcmcvc2hv
d19idWcuY2dpP2lkPTU3ODk+CisgICAgICAgIGlmcmFtZSB3aXRoIGhlaWdodCBpbiAlIHdpdGhp
biB0YWJsZSBpcyBub3QgcmVuZGVyZWQuCisKKyAgICAgICAgKiBmYXN0L3JlcGxhY2VkL3BlcmNl
bnQtaGVpZ2h0LWluLWNlbGwuaHRtbDogQWRkZWQuCisKIDIwMDYtMDMtMjcgIEFsZXhhbmRlciBL
ZWxsZXR0ICA8bHlwYW5vdkBrZGUub3JnPgogCiAgICAgICAgIFJldmlld2VkIGJ5IGRhcmluCklu
ZGV4OiBMYXlvdXRUZXN0cy9mYXN0L3JlcGxhY2VkL3BlcmNlbnQtaGVpZ2h0LWluLWNlbGwuaHRt
bAo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09P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B3aXRoaW4gdGFibGUgaXMgbm90
IHJlbmRlcmVkLgorCisgICAgICAgICogcmVuZGVyaW5nL1JlbmRlckJveC5jcHA6CisgICAgICAg
IChXZWJDb3JlOjpSZW5kZXJCb3g6OmNhbGNSZXBsYWNlZEhlaWdodFVzaW5nKTogQ2hlY2sgdGhh
dCB0aGUgCisgICAgICAgIGNvbnRhaW5lckhlaWdodCBpcyBncmVhdGVyIHRoYW4gMCB3aGVuIGNv
bXB1dGluZyBwZXJjZW50YWdlIGhlaWdodHMuCisKIDIwMDYtMDMtMTUgIERhcmluIEFkbGVyICA8
ZGFyaW5AYXBwbGUuY29tPgogCiAgICAgICAgIEF0IHRoZSByZXF1ZXN0IG9mIE1pY2hhZWwgRW1t
ZWwgPG1pa2UuZW1tZWxAZ21haWwuY29tPi4K
</data>
<flag name="review"
          id="1965"
          type_id="1"
          status="-"
          setter="hyatt"
    />
          </attachment>
      

    </bug>

</bugzilla>