<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>15892</bug_id>
          
          <creation_ts>2012-02-04 18:32:04 +0000</creation_ts>
          <short_desc>What&apos;s the baseline of an inline table with no rows?</short_desc>
          <delta_ts>2012-12-04 00:50:49 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>CSS</product>
          <component>CSS Level 2</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Windows 3.1</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Anton P">antonsforums</reporter>
          <assigned_to name="Bert Bos">bert</assigned_to>
          <cc>bzbarsky</cc>
    
    <cc>info</cc>
    
    <cc>jackalmage</cc>
          
          <qa_contact>public-css-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>63699</commentid>
    <comment_count>0</comment_count>
    <who name="Anton P">antonsforums</who>
    <bug_when>2012-02-04 18:32:04 +0000</bug_when>
    <thetext>Reported by Anton Prowse

The baseline of an &apos;inline-table&apos; is defined in 10.8.1 to be the baseline of the first row of the table.  But what if it doesn&apos;t have any rows?  We should probably define it to mean the bottom margin edge of the wrapper box in that case, to match the behaviour of &apos;inline-block&apos;.

Conversation begins:
Bug description:
http://lists.w3.org/Archives/Public/www-style/2011Mar/0637.html (#4)

Acknowledgement: http://lists.w3.org/Archives/Public/www-style/2011Mar/0681.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63700</commentid>
    <comment_count>1</comment_count>
    <who name="Anton P">antonsforums</who>
    <bug_when>2012-02-04 18:32:17 +0000</bug_when>
    <thetext>This bug is related to Bug 15891</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63701</commentid>
    <comment_count>2</comment_count>
    <who name="Anton P">antonsforums</who>
    <bug_when>2012-02-04 18:32:57 +0000</bug_when>
    <thetext>This proposal would partially resolve Bug 15890</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69903</commentid>
    <comment_count>3</comment_count>
    <who name="Anton P">antonsforums</who>
    <bug_when>2012-07-12 18:34:59 +0000</bug_when>
    <thetext>Browser compat info:

Add a rowless table as the first item in an table cell, and see how the table cell&apos;s baseline is determined.  According to 17.5.3:

  # The baseline of a cell is the baseline of the first in-flow
  # line box in the cell, or the first in-flow table-row in the
  # cell, whichever comes first. If there is no such line box or
  # table-row, the baseline is the bottom of content edge of the
  # cell box.

Experiments suggest that Firefox constructs an anonymous table-row and table-cell in the empty table (even though the algorithm in the spec wouldn&apos;t create any).  It then aligns that row as specified.

WebKit, on the other hand, skips over the row-less table when trying to determine a baseline for the cell.

http://lists.w3.org/Archives/Public/www-style/2012Jul/0291.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69927</commentid>
    <comment_count>4</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2012-07-13 02:14:24 +0000</bug_when>
    <thetext>Can I see the testcase you used for comment 3?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69937</commentid>
    <comment_count>5</comment_count>
    <who name="Tab Atkins Jr.">jackalmage</who>
    <bug_when>2012-07-13 17:17:03 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; Can I see the testcase you used for comment 3?

http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%0A%3Ctable%3E%0A%20%3Ctr%3E%0A%20%20%3Ctd%20style%3D%22vertical-align%3A%20baseline%3B%20font-size%3A%20100px%3B%22%3Efoo%0A%20%20%3Ctd%20style%3D%22vertical-align%3A%20baseline%3B%22%3E%3Ctable%20style%3D%22width%3A%2050px%3B%20height%3A%2050px%3B%20background%3A%20green%3B%22%3E%3C%2Ftable%3Efoo%0A%3C%2Ftable%3E

In Webkit, the two &quot;foo&quot;s have their baselines aligned.  In Firefox, the first &quot;foo&quot;&apos;s baseline is lined up with the bottom of the table.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69939</commentid>
    <comment_count>6</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2012-07-13 17:41:29 +0000</bug_when>
    <thetext>Gecko does not have a table row there.  It just treats the &quot;first line baseline&quot; as being always available from a table, which is probably just wrong per spec.  File a bug, please?  ;)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69943</commentid>
    <comment_count>7</comment_count>
    <who name="Tab Atkins Jr.">jackalmage</who>
    <bug_when>2012-07-13 18:02:59 +0000</bug_when>
    <thetext>It&apos;s not wrong per spec, it&apos;s undefined.  We can go either way.  

I&apos;d prefer to have a no-row table produce a baseline, just like we&apos;ve defined no-item flexboxes to produce a baseline.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69963</commentid>
    <comment_count>8</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2012-07-13 20:40:13 +0000</bug_when>
    <thetext>Well, spec says to look for the first line box or table row, and that would be the &quot;foo&quot; here, when looking for the baseline of a cell.  So it looks defined per spec to me.

The baseline of an _inline_ table is indeed undefined.  But that&apos;s somewhat orthogonal.

Though obviously I would prefer it if we simply defined the baseline of tables and used it both places....  assuming the same baseline works in both cases.  Note that for blocks we have different behavior for inline-block and block (last line vs first line).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70017</commentid>
    <comment_count>9</comment_count>
    <who name="Anton P">antonsforums</who>
    <bug_when>2012-07-15 15:46:20 +0000</bug_when>
    <thetext>Ah, so actually the test in Comment 3 and onwards isn&apos;t actually useful for observing if/how UAs determine the baseline of a table with no rows, since the baseline of a cell is specified to depend on descendant table rows but not on the table itself.

And in any case, the baseline of a table isn&apos;t what we&apos;re interested in here anyway; it would have merely been an interesting data point.  (Flexbox is the spec which cares about that, not CSS21.)  This bug is about the baseline of an /inline/-table.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>