<?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>13339</bug_id>
          
          <creation_ts>2007-04-12 05:45:45 -0700</creation_ts>
          <short_desc>Padding on TDs not used when determining column widths in table-layout:fixed</short_desc>
          <delta_ts>2012-03-30 11:00:36 -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>523.x (Safari 3)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>78412</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>78412</dependson>
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Nicholas Oxhøj">nicholas</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>info</cc>
    
    <cc>kyle</cc>
    
    <cc>marcoos+bwo</cc>
    
    <cc>matt.knox</cc>
    
    <cc>mitz</cc>
    
    <cc>osipov.av</cc>
    
    <cc>phiw2</cc>
    
    <cc>phnixwxz</cc>
    
    <cc>radek</cc>
    
    <cc>robert</cc>
    
    <cc>ryan</cc>
    
    <cc>tatham</cc>
    
    <cc>wangxianzhu</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>14938</commentid>
    <comment_count>0</comment_count>
    <who name="Nicholas Oxhøj">nicholas</who>
    <bug_when>2007-04-12 05:45:45 -0700</bug_when>
    <thetext>If I have horizontal padding on TD&apos;s (eg. &quot;td {padding: 0 25px;}&quot;), this padding is apparently ignored when determining column widths in a table with &quot;table-layout: fixed&quot;.

If a td has &quot;width: 5px&quot; that column will be 5px wide total (instead of the correct 55px wide - including padding) even though the contents of the column ARE displaced correctly by the 25px padding - and thus overflows into the next columns.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14909</commentid>
    <comment_count>1</comment_count>
      <attachid>14017</attachid>
    <who name="Nicholas Oxhøj">nicholas</who>
    <bug_when>2007-04-12 05:49:34 -0700</bug_when>
    <thetext>Created attachment 14017
A tescase for this bug

A testcase, showing both the erroneous and correct way to display the described table...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85314</commentid>
    <comment_count>2</comment_count>
      <attachid>22124</attachid>
    <who name="Ingo Chao">info</who>
    <bug_when>2008-07-07 03:27:43 -0700</bug_when>
    <thetext>Created attachment 22124
second testcase, CSS-table


A second testcase. 

CSS-table with a fixed width of 200px.
table-layout: fixed
left: table cell width:100px, 
right: table cell width:50px and padding-left:50px

webkit does not calculate the width correctly. It distributes the remaining space of the table among the cells, causing a wide left cell (100px+34px) and a smaller right cell (50px+16px).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>187505</commentid>
    <comment_count>3</comment_count>
    <who name="Tatham Oddie">tatham</who>
    <bug_when>2010-02-03 13:54:42 -0800</bug_when>
    <thetext>Suspected duplicate of bug 18565.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>297781</commentid>
    <comment_count>4</comment_count>
    <who name="Xianzhu Wang">phnixwxz</who>
    <bug_when>2010-10-21 18:39:48 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; Suspected duplicate of bug 18565.

They might be related, but this bug is about width of padding is not corrected added to the specified width of the table column.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>297782</commentid>
    <comment_count>5</comment_count>
    <who name="Xianzhu Wang">phnixwxz</who>
    <bug_when>2010-10-21 18:44:53 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; (In reply to comment #3)
&gt; &gt; Suspected duplicate of bug 18565.
&gt; 
&gt; They might be related, but this bug is about width of padding is not corrected added to the specified width of the table column.

Sorry I meant this bug seems not the same as bug 17583. It&apos;s in deed very related to bug 18565.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>519137</commentid>
    <comment_count>6</comment_count>
    <who name="Alexei Osipov">osipov.av</who>
    <bug_when>2011-12-12 05:05:30 -0800</bug_when>
    <thetext>Still reproducible in 535.8 (Chrome 17.0.963.2).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>519141</commentid>
    <comment_count>7</comment_count>
    <who name="Marek Stepien">marcoos+bwo</who>
    <bug_when>2011-12-12 05:11:49 -0800</bug_when>
    <thetext>This is because &lt;td&gt;s stubbornly use border-box mode, see bug 18565 comment 9.

Since bug 18565 has more information about this problem, bug 13339 should be made duplicate thereof.

Unfortunately neither of these bug reports have been marked as confirmed by the WebKit team.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>592000</commentid>
    <comment_count>8</comment_count>
    <who name="Marek Stepien">marcoos+bwo</who>
    <bug_when>2012-03-30 03:02:37 -0700</bug_when>
    <thetext>It seems that fix for bug 78412 fixed this one, too. 

The above testcases work fine for me in Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1085.0 Safari/536.5</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>592301</commentid>
    <comment_count>9</comment_count>
    <who name="Robert Hogan">robert</who>
    <bug_when>2012-03-30 11:00:36 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 78412 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>14017</attachid>
            <date>2007-04-12 05:49:34 -0700</date>
            <delta_ts>2007-04-12 05:49:34 -0700</delta_ts>
            <desc>A tescase for this bug</desc>
            <filename>Testcase.html</filename>
            <type>text/html</type>
            <size>1106</size>
            <attacher name="Nichol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cmRlcj0iMCIgY2xhc3M9InNhZmFyaSI+CiAgPHRyPgogICAgPHRkIGNs
YXNzPSJmaXJzdCI+PC90ZD4KICAgIDx0ZCBjbGFzcz0ic2Vjb25kIj48c3BhbiBzdHlsZT0icGFk
ZGluZy1sZWZ0OjE4cHgiPjEyPC9zcGFuPjwvdGQ+CiAgPC90cj4KPC90YWJsZT4KV2hhdCBJIHRo
aW5rIGl0IDxlbT5zaG91bGQ8L2VtPiBsb29rIGxpa2U6Cjx0YWJsZSBib3JkZXI9IjAiIGNsYXNz
PSJjb3JyZWN0Ij4KICA8dHI+CiAgICA8dGQgY2xhc3M9ImZpcnN0Ij48c3Bhbj4xPC9zcGFuPjwv
dGQ+CiAgICA8dGQgY2xhc3M9InNlY29uZCI+PHNwYW4+Mjwvc3Bhbj48L3RkPgogIDwvdHI+Cjwv
dGFibGU+CjwvYm9keT4KPC9odG1sPgo=
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>22124</attachid>
            <date>2008-07-07 03:27:43 -0700</date>
            <delta_ts>2008-07-07 03:27:43 -0700</delta_ts>
            <desc>second testcase, CSS-table</desc>
            <filename>cellpad.html</filename>
            <type>text/html</type>
            <size>1055</size>
            <attacher name="Ingo Chao">info</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWwgUFVCTElDICItLy9XM0MvL0RURCBYSFRNTCAxLjAgU3RyaWN0Ly9FTiIK
ICAgICJodHRwOi8vd3d3LnczLm9yZy9UUi94aHRtbDEvRFREL3hodG1sMS1zdHJpY3QuZHRkIj4K
CjxodG1sIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hodG1sIiB4bWw6bGFuZz0iZW4i
IGxhbmc9ImVuIj4KPGhlYWQ+CiAgICA8bWV0YSBodHRwLWVxdWl2PSJDb250ZW50LVR5cGUiIGNv
bnRlbnQ9InRleHQvaHRtbDsgY2hhcnNldD11dGYtOCIgLz4KCiAgICA8dGl0bGU+PC90aXRsZT4K
ICAgIDxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+CiAgICAjdGFiIHsKICAgICAgICBkaXNwbGF5OiB0
YWJsZTsKICAgICAgICB0YWJsZS1sYXlvdXQ6IGZpeGVkOwogICAgICAgIGJvcmRlci1jb2xsYXBz
ZTogY29sbGFwc2U7CiAgICAgICAgd2lkdGg6IDIwMHB4OwogICAgfQogICAgI3RhYj5kaXYgewog
ICAgICAgIGRpc3BsYXk6IHRhYmxlLXJvdzsKICAgIH0KICAgICN0YWI+ZGl2IGRpdiB7CiAgICAg
ICAgZGlzcGxheTogdGFibGUtY2VsbDsKICAgIH0KICAgIC5hIHsKICAgICAgICB3aWR0aDogMTAw
cHg7CiAgICAgICAgYmFja2dyb3VuZDogIzlmZjsKICAgIH0KICAgIC5iIHsKICAgICAgICB3aWR0
aDogNTBweDsKICAgICAgICBwYWRkaW5nOiAwIDAgMCA1MHB4OwogICAgICAgIGJhY2tncm91bmQ6
ICNmOWY7CiAgICB9CiAgICBwIHsKICAgICAgICBtYXJnaW46IDAgMCAwIDEwMHB4OwogICAgICAg
IHBhZGRpbmc6IDA7CiAgICAgICAgYm9yZGVyLWxlZnQ6IDFweCBzb2xpZCAjZjAwOwogICAgfQog
ICAgPC9zdHlsZT4KPC9oZWFkPgoKPGJvZHk+CiAgICA8ZGl2IGlkPSJ0YWIiPgogICAgICAgIDxk
aXY+CiAgICAgICAgICAgIDxkaXYgY2xhc3M9ImEiPgogICAgICAgICAgICAgICAgNTAlCiAgICAg
ICAgICAgIDwvZGl2PgoKICAgICAgICAgICAgPGRpdiBjbGFzcz0iYiI+CiAgICAgICAgICAgICAg
ICA1MCUKICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgPC9kaXY+CiAgICA8L2Rpdj4KCiAgICA8
cD5jZW50ZXI8L3A+CjwvYm9keT4KPC9odG1sPgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>