<?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>6320</bug_id>
          
          <creation_ts>2008-12-18 14:43:01 +0000</creation_ts>
          <short_desc>Explicit Row Height, table-cells Borders and border-separation</short_desc>
          <delta_ts>2009-01-13 12:45:07 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XSLFO</product>
          <component>XSL-FO</component>
          <version>2.0 Working Draft</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>ASSIGNED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc>http://lists.w3.org/Archives/Public/xsl-editors/2008JanMar/0002</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="Tony Graham">tgraham</reporter>
          <assigned_to name="Anders Berglund">alb.w3c</assigned_to>
          <cc>vhennebert</cc>
          
          <qa_contact name="Mailing list for comments on XSL (XSl-FO)">xsl-editors</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>22800</commentid>
    <comment_count>0</comment_count>
    <who name="Tony Graham">tgraham</who>
    <bug_when>2008-12-18 14:43:01 +0000</bug_when>
    <thetext>As far as I can tell the XSL-FO 1.1 Recommendation doesnt indicate 
whether an explicit height set on a table-row element should include the 
tables border-separation and the children cells border widths, or not. 
In section 7.15.6, a reference to CSS 2 is made for a discussion of the 
height property in tables, but the CSS 2 Recommendation is itself not 
clear what the height of a cell should be in this context.

Also, in section 6.7.9, fo:table-row, the row-height trait is 
mentioned but is not referenced anywhere else.

So, in the following example:
    &lt;fo:table table-layout=&quot;fixed&quot; width=&quot;100%&quot; 
      border-collapse=&quot;separate&quot;
      border=&quot;1pt solid black&quot;
      border-separation=&quot;6pt&quot;&gt;
      &lt;fo:table-body font-size=&quot;8pt&quot; line-height=&quot;10pt&quot;&gt;
        &lt;fo:table-row block-progression-dimension=&quot;45pt&quot;&gt;
          &lt;fo:table-cell border=&quot;2pt solid black&quot;&gt;
            &lt;fo:block&gt;Cell 1&lt;/fo:block&gt;
          &lt;/fo:table-cell&gt;
          &lt;fo:table-cell border=&quot;5pt solid black&quot;&gt;
            &lt;fo:block&gt;Cell 2&lt;/fo:block&gt;
          &lt;/fo:table-cell&gt;
        &lt;/fo:table-row&gt;
      &lt;/fo:table-body&gt;
    &lt;/fo:table&gt;

What should be the final block-progression-dimensions for the cells?
There are 3 possibilities:
1. the explicit row height shall include the cells borders and the 
   tables border-separation:
   - height of cell 1 = 3 (half of border-separation)
            + 2 (border-before)
            + 10 (b-p-d)
            + 2 (border-after)
            + 3 (half of border-separation)
            = 20pt
   - height of cell 2 = 3 + 5 + 10 + 5 + 3 = 26pt  
   - height of row = max(explicit row height, height of cell 1, height of cell 2)
                   = 45pt
   As a consequence the final block-progression-dimensions of the cells 
   are re-evaluated to match the rows explicit height:
   - b-p-d of cell 1 = 45 - (3 + 2 + 2 + 3) = 35pt
   - b-p-d of cell 2 = 45 - (3 + 5 + 5 + 3) = 29pt

2. the explicit row height shall include the cells borders but not the 
   tables border-separation:
   - height of cell 1 = 2 + 10 + 2 = 14pt
   - height of cell 2 = 5 + 10 + 5 = 20pt
   - height of row = max(45, 14, 20) = 45pt
   So the final block-progression-dimensions of the cells would be:
   - b-p-d of cell 1 = 45 - (2 + 2) = 41pt
   - b-p-d of cell 2 = 45 - (5 + 5) = 35pt

3. the explicit row height shall include only the cells 
   block-progression-dimensions:
   - height of cell 1 = 10pt
   - height of cell 2 = 10pt
   - height of row = max(45, 10, 10) = 45pt
   So the final block-progression-dimensions of the cells would be:
   - b-p-d of cell 1 = 45pt
   - b-p-d of cell 2 = 45pt
   But then what would be the final row height? Should it be re-computed 
   as in the case where the row height is left to auto? Then:
   - height of cell 1 = 2 + 45 + 2 = 49pt
   - height of cell 2 = 5 + 45 + 5 = 55pt
   - height of row = max(49, 55) = 55pt
   So final b-p-ds of the cells:
   - b-p-d of cell 1 = 55 - (2 + 2) = 51pt
   - b-p-d of cell 2 = 45pt

There are some hints in the Recommendation which would tend towards 
solution #2, but a clarification in this area would be much appreciated.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22801</commentid>
    <comment_count>1</comment_count>
    <who name="Tony Graham">tgraham</who>
    <bug_when>2008-12-18 14:45:52 +0000</bug_when>
    <thetext>From http://lists.w3.org/Archives/Public/xsl-editors/2008JanMar/0011:

For version 2.0 of XSL the WG has decided to rewrite the text of
the table formatting objects to be independent of the CSS2
Recommendation in order to be able to specify more fully the expected
results that in many cases are left open by the current text with its
references. The lack of precision that you have identified will be
corrected.

As these modifications will lead to some of the existing implementations
becoming non-conformant (having taken a different imlementation choice,
that is permitted in XSL 1.0 and 1.1, than what will become normative)
the WG feels that this cannot be part of an erratum to 1.0 or 1.1, but
will have to wait until 2.0. 
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23031</commentid>
    <comment_count>2</comment_count>
    <who name="Tony Graham">tgraham</who>
    <bug_when>2009-01-13 12:45:07 +0000</bug_when>
    <thetext>Adding original poster as CC.  Response from original poster required to resolve bug report.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>