<?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>3235</bug_id>
          
          <creation_ts>2005-06-01 14:56:31 -0700</creation_ts>
          <short_desc>CSS2: Table cell coalescing in CSS broken</short_desc>
          <delta_ts>2009-04-21 08:49:21 -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>412</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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="Dave Hyatt">hyatt</reporter>
          <assigned_to name="Beth Dakin">bdakin</assigned_to>
          <cc>bdakin</cc>
    
    <cc>ian</cc>
    
    <cc>zwarich</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>10423</commentid>
    <comment_count>0</comment_count>
    <who name="Dave Hyatt">hyatt</who>
    <bug_when>2005-06-01 14:56:31 -0700</bug_when>
    <thetext>&lt;html&gt;
&lt;head&gt;
&lt;style&gt;
.entries { display: table-cell; }
.sidebar { display: table-cell; }
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div class=&quot;nav&quot;&gt;&lt;/div&gt;
&lt;div class=&quot;entries&quot;&gt;One&lt;/div&gt;
&lt;div class=&quot;sidebar&quot;&gt;Two&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;

&quot;One&quot; and &quot;Two&quot; should be in the same table, so they should be in a row together.  Instead they end up 
in separate tables all because of the presence of the extra &quot;nav&quot; div.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10424</commentid>
    <comment_count>1</comment_count>
    <who name="Dave Hyatt">hyatt</who>
    <bug_when>2005-06-01 14:57:37 -0700</bug_when>
    <thetext>Apple Bug: rdar://3299883/
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26976</commentid>
    <comment_count>2</comment_count>
      <attachid>5331</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2005-12-28 02:12:04 -0800</bug_when>
    <thetext>Created attachment 5331
test case as attachement</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26977</commentid>
    <comment_count>3</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2005-12-28 02:13:00 -0800</bug_when>
    <thetext>CC&apos;ing beth as this is in her area of expertise.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82025</commentid>
    <comment_count>4</comment_count>
    <who name="Bradley Meck">genisis329</who>
    <bug_when>2008-05-31 01:06:42 -0700</bug_when>
    <thetext>After looking into the bug I cannot seem to locate the logic for testing adjacent cells. It does not occur in all the Rendering files and my next guess was the CSSParser, which also does not appear to have the logic. Also the use of setStyle only occurs once for TABLE_CELL, and that also does not appear to contain the logic. Any clues?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82086</commentid>
    <comment_count>5</comment_count>
    <who name="Rob Buis">rwlbuis</who>
    <bug_when>2008-06-01 23:50:52 -0700</bug_when>
    <thetext>Hi Bradley,

(In reply to comment #4)
&gt; After looking into the bug I cannot seem to locate the logic for testing
&gt; adjacent cells. It does not occur in all the Rendering files and my next guess
&gt; was the CSSParser, which also does not appear to have the logic. Also the use
&gt; of setStyle only occurs once for TABLE_CELL, and that also does not appear to
&gt; contain the logic. Any clues?

I noticed that the render tree dumps are different if you position the non table cell div first or last. In the last case two RenderTableCell&apos;s are created, the first case just one. It may be worth debugging on what basis
and where these RenderTableCell&apos;s are created, maybe by stepping through the code or adding printf statements.
Cheers,

Rob.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>118251</commentid>
    <comment_count>6</comment_count>
      <attachid>29644</attachid>
    <who name="Cameron Zwarich (cpst)">zwarich</who>
    <bug_when>2009-04-21 02:00:54 -0700</bug_when>
    <thetext>Created attachment 29644
Patch to add test

The bug is now fixed, but we should add this as a test.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>118265</commentid>
    <comment_count>7</comment_count>
    <who name="Cameron Zwarich (cpst)">zwarich</who>
    <bug_when>2009-04-21 08:49:21 -0700</bug_when>
    <thetext>Landed in r42711.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>5331</attachid>
            <date>2005-12-28 02:12:04 -0800</date>
            <delta_ts>2005-12-28 02:12:04 -0800</delta_ts>
            <desc>test case as attachement</desc>
            <filename>table.html</filename>
            <type>text/html</type>
            <size>216</size>
            <attacher name="Eric Seidel (no email)">eric</attacher>
            
              <data encoding="base64">PGh0bWw+CjxoZWFkPgo8c3R5bGU+Ci5lbnRyaWVzIHsgZGlzcGxheTogdGFibGUtY2VsbDsgfQou
c2lkZWJhciB7IGRpc3BsYXk6IHRhYmxlLWNlbGw7IH0KPC9zdHlsZT4KPC9oZWFkPgo8Ym9keT4K
PGRpdiBjbGFzcz0ibmF2Ij48L2Rpdj4KPGRpdiBjbGFzcz0iZW50cmllcyI+T25lPC9kaXY+Cjxk
aXYgY2xhc3M9InNpZGViYXIiPlR3bzwvZGl2Pgo8L2JvZHk+CjwvaHRtbD4K
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>29644</attachid>
            <date>2009-04-21 02:00:54 -0700</date>
            <delta_ts>2009-04-21 07:54:10 -0700</delta_ts>
            <desc>Patch to add test</desc>
            <filename>tables.diff</filename>
            <type>text/plain</type>
            <size>2198</size>
            <attacher name="Cameron Zwarich (cpst)">zwarich</attacher>
            
              <data encoding="base64">SW5kZXg6IENoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBDaGFuZ2VMb2cJKHJldmlzaW9uIDQyNzA3
KQorKysgQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBAIC0xLDMgKzEsMTYgQEAKKzIwMDktMDQt
MjEgIENhbWVyb24gWndhcmljaCAgPGN3endhcmljaEB1d2F0ZXJsb28uY2E+CisKKyAgICAgICAg
UmV2aWV3ZWQgYnkgTk9CT0RZIChPT1BTISkuCisKKyAgICAgICAgQWRkIGEgdGVzdCBmb3IgYnVn
IDMyMzU6IENTUzI6IFRhYmxlIGNlbGwgY29hbGVzY2luZyBpbiBDU1MgYnJva2VuCisgICAgICAg
IDxodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9MzIzNT4KKyAgICAgICAg
PHJkYXI6Ly8zMjk5ODgzLz4KKworICAgICAgICBUaGlzIHdhcyBmaXhlZCBsb25nIGFnbywgYnV0
IHdlIHNob3VsZCBhZGQgYSB0ZXN0IHRvIHByZXZlbnQgYSByZWdyZXNzaW9uLgorCisgICAgICAg
ICogZmFzdC90YWJsZS9jZWxsLWNvYWxlc2NpbmcuaHRtbDogQWRkZWQuCisgICAgICAgICogcGxh
dGZvcm0vbWFjL2Zhc3QvdGFibGUvY2VsbC1jb2FsZXNjaW5nLWV4cGVjdGVkLnR4dDogQWRkZWQu
CisKIDIwMDktMDQtMjAgIEFsZXhleSBQcm9za3VyeWFrb3YgIDxhcEB3ZWJraXQub3JnPgogCiAg
ICAgICAgIFJldmlld2VkIGJ5IERhcmluIEFkbGVyLgpJbmRleDogZmFzdC90YWJsZS9jZWxsLWNv
YWxlc2NpbmcuaHRtbAo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09P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zaXplIDc4NHg1ODQKKyAgICAgIFJlbmRlckJsb2Nr
IHtESVZ9IGF0ICgwLDApIHNpemUgNzg0eDAKKyAgICAgIFJlbmRlclRhYmxlIGF0ICgwLDApIHNp
emUgNTd4MTgKKyAgICAgICAgUmVuZGVyVGFibGVTZWN0aW9uIChhbm9ueW1vdXMpIGF0ICgwLDAp
IHNpemUgNTd4MTgKKyAgICAgICAgICBSZW5kZXJUYWJsZVJvdyAoYW5vbnltb3VzKSBhdCAoMCww
KSBzaXplIDU3eDE4CisgICAgICAgICAgICBSZW5kZXJUYWJsZUNlbGwge0RJVn0gYXQgKDAsMCkg
c2l6ZSAyN3gxOCBbcj0wIGM9MCBycz0xIGNzPTFdCisgICAgICAgICAgICAgIFJlbmRlclRleHQg
eyN0ZXh0fSBhdCAoMCwwKSBzaXplIDI3eDE4CisgICAgICAgICAgICAgICAgdGV4dCBydW4gYXQg
KDAsMCkgd2lkdGggMjc6ICJPbmUiCisgICAgICAgICAgICBSZW5kZXJUYWJsZUNlbGwge0RJVn0g
YXQgKDI3LDApIHNpemUgMzB4MTggW3I9MCBjPTEgcnM9MSBjcz0xXQorICAgICAgICAgICAgICBS
ZW5kZXJUZXh0IHsjdGV4dH0gYXQgKDAsMCkgc2l6ZSAzMHgxOAorICAgICAgICAgICAgICAgIHRl
eHQgcnVuIGF0ICgwLDApIHdpZHRoIDMwOiAiVHdvIgo=
</data>
<flag name="review"
          id="14810"
          type_id="1"
          status="+"
          setter="darin"
    />
          </attachment>
      

    </bug>

</bugzilla>