<?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>125640</bug_id>
          
          <creation_ts>2013-12-12 09:30:45 -0800</creation_ts>
          <short_desc>WebKit generates a table (instead of inline-table) anonymous wrapper for element with &quot;display:table-cell&quot; and inline-level parent</short_desc>
          <delta_ts>2025-01-16 18:08:03 -0800</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>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=122788</see_also>
          <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>21092</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Daniel Holbert">dholbert</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>959214</commentid>
    <comment_count>0</comment_count>
      <attachid>219090</attachid>
    <who name="Daniel Holbert">dholbert</who>
    <bug_when>2013-12-12 09:30:45 -0800</bug_when>
    <thetext>Created attachment 219090
testcase

What steps will reproduce the problem?
1. Load attached testcase.

EXPECTED RESULTS:
Both &quot;table-cell, ...&quot; lines should have a black border and a lime background.

ACTUAL RESULTS:
The first &quot;table-cell, ...&quot; line has a solid black line above it, and no background.

As described at https://bugzilla.mozilla.org/show_bug.cgi?id=928074#c22, I think this indicates that WebKit is incorrectly generating an anonymous *block-level* table element to wrap the table-cell. This goes against the CSS 2.1 spec -- as described in step 3 substep 2 at http://www.w3.org/TR/CSS21/tables.html#anonymous-boxes ,

&quot;(If C&apos;s parent is an &apos;inline&apos; box, then [the generated anonymous table] must be an &apos;inline-table&apos; box; otherwise it must be a &apos;table&apos; box.)&quot;

And in the testcase, the parent is a &lt;span&gt;, which is an inline box. So, WebKit should generate an inline-table and match the rendering of the lower line that has an explicit inline-table.

I tested with two webkit-based browsers on Ubuntu 13.10:
 - Midori 0.4.3 (not sure what WebKit version)
 - epiphany-browser 3.6.1 (which says &quot;Powered by WebKit 1.10.2&quot;)
Both show ACTUAL RESULTS.

Firefox 26 shows EXPECTED RESULTS

See also the related Blink bug, here: http://code.google.com/p/chromium/issues/detail?id=327832</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>964644</commentid>
    <comment_count>1</comment_count>
    <who name="Daniel Holbert">dholbert</who>
    <bug_when>2014-01-06 09:19:20 -0800</bug_when>
    <thetext>As I discovered (via a few hops) on the Blink version of this bug, this issue may be a variant of bug 21092. (Though I&apos;m not sure, since there appear to be several related issues; bug 21092 seems to be primarily about a problem with &lt;table style=&quot;display:inline&quot;&gt;.)

Adding dependency to establish the connection, at least (though this may end up just being a duplicate).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2087920</commentid>
    <comment_count>2</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2025-01-16 18:08:03 -0800</bug_when>
    <thetext>All browsers (Chrome Canary 134, Firefox Nightly 136 and WebKit ToT) seems to render this similar, so marking this as &apos;Configuration Changed&apos;.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>219090</attachid>
            <date>2013-12-12 09:30:45 -0800</date>
            <delta_ts>2013-12-12 09:30:45 -0800</delta_ts>
            <desc>testcase</desc>
            <filename>test.html</filename>
            <type>text/html</type>
            <size>515</size>
            <attacher name="Daniel Holbert">dholbert</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CkJvdGggY2h1bmtzIG9mIHRleHQgYmVsb3cgc2hvdWxkIGhhdmUgYSBs
aW1lIGJhY2tncm91bmQgYW5kIGEgYmxhY2sgYm9yZGVyOgo8YnI+PGJyPgoKPHNwYW4gc3R5bGU9
ImJvcmRlcjogMXB4IHNvbGlkIGJsYWNrOyBiYWNrZ3JvdW5kOiBsaW1lIj4KICA8ZGl2IHN0eWxl
PSJkaXNwbGF5OiB0YWJsZS1jZWxsIj4KICAgIHRhYmxlLWNlbGwsIHdpdGggbm8gZXhwbGljaXQg
dGFibGUgY29udGFpbmVyIChzaG91bGQgZ2VuZXJhdGUgaW5saW5lLXRhYmxlKQogIDwvZGl2Pgo8
L3NwYW4+Cgo8YnI+Cgo8c3BhbiBzdHlsZT0iYm9yZGVyOiAxcHggc29saWQgYmxhY2s7IGJhY2tn
cm91bmQ6IGxpbWUiPgogIDxkaXYgc3R5bGU9ImRpc3BsYXk6IGlubGluZS10YWJsZSI+CiAgICA8
ZGl2IHN0eWxlPSJkaXNwbGF5OiB0YWJsZS1jZWxsIj4KICAgICAgdGFibGUtY2VsbCwgd2l0aCBl
eHBsaWNpdCBpbmxpbmUtdGFibGUgY29udGFpbmVyCiAgICA8L2Rpdj4KICA8L2Rpdj4KPC9zcGFu
Pgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>