<?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>30075</bug_id>
          
          <creation_ts>2017-03-17 10:50:58 +0000</creation_ts>
          <short_desc>Visibility: collapse should cause a recalculation on affected rows with rowspan and affected columns with colspan (as applicable)</short_desc>
          <delta_ts>2017-03-17 10:51:57 +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>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc>https://www.w3.org/TR/CSS22/tables.html#dynamic-effects</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="brunoais">brunoaiss</reporter>
          <assigned_to name="Bert Bos">bert</assigned_to>
          <cc>bert</cc>
    
    <cc>brunoaiss</cc>
          
          <qa_contact>public-css-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>128488</commentid>
    <comment_count>0</comment_count>
    <who name="brunoais">brunoaiss</who>
    <bug_when>2017-03-17 10:50:58 +0000</bug_when>
    <thetext>Currently, with &lt;tr&gt;,
(source: https://www.w3.org/TR/CSS22/tables.html#dynamic-effects )
When a &lt;tr&gt; has the CSS rule and a &lt;td&gt; has rowspan, the contents are supposed to be clipped.
E.g.:
For a table like this:
+--------+-------+
|  grp1  | info1 |
|        +-------+
|        | info2 |
|        +-------+
|        | info3 |
+--------+-------+
|        | info4 |
|        +-------+
|  grp2  | info5 |
|        +-------+
|        | info6 |
+--------+-------+
|        | info7 |
|        +-------+
|        | info8 |
|        +-------+
|  grp3  | info9 |
+--------+-------+

grp1 is vertically-aligned to the top
grp2 is vertically-aligned to the middle
grp3 is vertically-aligned to the bottom

## According to the spec, for each of the below changes:

&quot;visibility:collapse&quot; the first row of each span group, and it should become like this:

+--------+-------+
|        | info2 |
|        +-------+
|        | info3 |
+--------+-------+
|  grp2  | info5 |
|        +-------+
|        | info6 |
+--------+-------+
|        | info8 |
|        +-------+
|  grp3  | info9 |
+--------+-------+

&quot;visibility:collapse&quot; the second row of each span group, and it should become like this:
+--------+-------+
|  grp1  | info1 |
|        +-------+
|        | info3 |
+--------+-------+
|        | info4 |
|        +-------+
|        | info6 |
+--------+-------+
|        | info7 |
|        +-------+
|  grp3  | info9 |
+--------+-------+

&quot;visibility:collapse&quot; the 3rd row of each span group, and it should become like this:
+--------+-------+
|  grp1  | info1 |
|        +-------+
|        | info2 |
+--------+-------+
|        | info4 |
|        +-------+
|  grp2  | info5 |
+--------+-------+
|        | info7 |
|        +-------+
|        | info8 |
+--------+-------+


Issues:

When working with text in tables, it can end up become unnecessarily clipped out when a row is hidden.
Just see what happens above when the row where the text is is collapsed. There&apos;s still a lot of space available but the text just doesn&apos;t appear there because it was clipped out.

Suggestion:

When &quot;visibility:collapsed&quot; is applied to a row:
1: The cells&apos; rowspan that span through the affected row will have their rowspan value deducted by 1.
2: All &quot;blocks&quot; inside cells that have had rowspan deducted and have rowspan over 0 will be repositioned inside the cell according to vertical-align property. The cell should not change size to accommodate the content. All content that does not fit the cell just by repositioning it should be clipped.

For the above, the same ideology applies to columns.



&quot;visibility:collapse&quot; the first row of each span group, and it should become like this:

+--------+-------+
|  grp1  | info2 |
|        +-------+
|        | info3 |
+--------+-------+
|        | info5 |
|  grp2  +-------+
|        | info6 |
+--------+-------+
|        | info8 |
|        +-------+
|  grp3  | info9 |
+--------+-------+

&quot;visibility:collapse&quot; the second row of each span group, and it should become like this:
+--------+-------+
|  grp1  | info1 |
|        +-------+
|        | info3 |
+--------+-------+
|        | info4 |
|  grp2  +-------+
|        | info6 |
+--------+-------+
|        | info7 |
|        +-------+
|  grp3  | info9 |
+--------+-------+

&quot;visibility:collapse&quot; the 3rd row of each span group, and it should become like this:
+--------+-------+
|  grp1  | info1 |
|        +-------+
|        | info2 |
+--------+-------+
|        | info4 |
|  grp2  +-------+
|        | info5 |
+--------+-------+
|        | info7 |
|        +-------+
|  grp3  | info8 |
+--------+-------+


Any Reasons why this is a bad idea or this won&apos;t work?</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>