<?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>52100</bug_id>
          
          <creation_ts>2011-01-07 18:47:02 -0800</creation_ts>
          <short_desc>Table &lt;td&gt; with 100% height not taking it&apos;s sibling &lt;td&gt;&apos;s img content into consideration</short_desc>
          <delta_ts>2022-09-10 10:29:17 -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>Tables</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Darth">priyajeet.hora</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>ap</cc>
    
    <cc>arpitabahuguna</cc>
    
    <cc>bfulgham</cc>
    
    <cc>jchaffraix</cc>
    
    <cc>pravind</cc>
    
    <cc>priyajeet.hora</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>331129</commentid>
    <comment_count>0</comment_count>
    <who name="Darth">priyajeet.hora</who>
    <bug_when>2011-01-07 18:47:02 -0800</bug_when>
    <thetext>Please use the html code from below and try it on webkit vs non-webkit browsers.
The right pane should be all white, thus signifying the table to take 100% of the available height of it&apos;s parent td.
However in webkit the height gets computed to 0 hence you see the black background color.

The right pane td is not taking the image in the left pane td into consideration when computing its height.


&lt;html&gt;
&lt;head&gt;

&lt;/head&gt;
&lt;body&gt;
	&lt;table width=&apos;100%&apos;&gt;
		&lt;tbody&gt;
			&lt;tr&gt;
				&lt;td style=&apos;background-color: black; color: white;&apos; width=&apos;10%&apos;&gt;
					&lt;!-- This image has a height, that is used to calculate the computer height of the td otherwise this td has no height --&gt;
					&lt;img border=&quot;0&quot; src=&quot;http://blogoscoped.com/files/google-new-year-logos-2007.png&quot;&gt;
				&lt;/td&gt;
				&lt;td style=&apos;background-color: black; color: white;&apos; height=&apos;100%&apos;&gt;
					&lt;!-- This td has a 100% height, that it should use from its sibling td but the images height is not taken into consideration --&gt;
					&lt;table id=&apos;shouldTakeAllSpace&apos; height=&quot;100%&quot; width=&quot;100%&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot;&gt;
						&lt;!-- This ends up taking no height since its parent has none --&gt;
						&lt;tbody&gt;
							&lt;tr&gt;
								&lt;td width=&quot;100%&quot; style=&quot;height: 100%; background-color: white; &quot;&gt;
								&lt;/td&gt;
							&lt;/tr&gt;
						&lt;/tbody&gt;
					&lt;/table&gt;
				&lt;/td&gt;
			&lt;/tr&gt;
		&lt;/tbody&gt;
	&lt;/table&gt;	
&lt;/body&gt;
&lt;/html&gt;

Downstream bug
http://code.google.com/p/chromium/issues/detail?id=64584</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>331130</commentid>
    <comment_count>1</comment_count>
      <attachid>78297</attachid>
    <who name="Darth">priyajeet.hora</who>
    <bug_when>2011-01-07 18:48:18 -0800</bug_when>
    <thetext>Created attachment 78297
table td not taking image height into computation</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>419723</commentid>
    <comment_count>2</comment_count>
    <who name="Julien Chaffraix">jchaffraix</who>
    <bug_when>2011-06-13 11:35:46 -0700</bug_when>
    <thetext>Looking at this bug today, I couldn&apos;t reproduce the behavior. Darth, could you confirm that it is fixed or point what we are (still) doing wrong as I may be missing something?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>419733</commentid>
    <comment_count>3</comment_count>
    <who name="Darth">priyajeet.hora</who>
    <bug_when>2011-06-13 11:46:10 -0700</bug_when>
    <thetext>I still see the issue on Safari 5.1 and Chrome 14 (Canary).
I could not try a webkit nightly build as I am on Lion (unless you know how to get it to work).

But in Chrome and Safari 5.1, if you open the attachment and then compare it to how it looks in FF4/IE9, you will see the difference.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1897530</commentid>
    <comment_count>4</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-09-10 07:28:53 -0700</bug_when>
    <thetext>I am able to reproduce this bug in Safari Technology Preview 153 using attached test case and it does show &quot;right hand side&quot; table in &quot;Black&quot; filled similar to Chrome Canary 107 while Firefox Nightly 107 does not show &quot;Black&quot; filled and show &quot;White / Blank&quot; expected similar to mentioned in Comment 0.

I am changing status to &quot;New&quot; and adding few other Webkit Engineers for their input. Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1897549</commentid>
    <comment_count>5</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-09-10 10:29:17 -0700</bug_when>
    <thetext>&lt;rdar://problem/99781068&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>78297</attachid>
            <date>2011-01-07 18:48:18 -0800</date>
            <delta_ts>2011-01-07 18:48:18 -0800</delta_ts>
            <desc>table td not taking image height into computation</desc>
            <filename>test.html</filename>
            <type>text/html</type>
            <size>985</size>
            <attacher name="Darth">priyajeet.hora</attacher>
            
              <data encoding="base64">PGh0bWw+DQo8aGVhZD4NCg0KPC9oZWFkPg0KPGJvZHk+DQoJPHRhYmxlIHdpZHRoPScxMDAlJz4N
CgkJPHRib2R5Pg0KCQkJPHRyPg0KCQkJCTx0ZCBzdHls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