Skip to content

Commit ae678a1

Browse files
committed
[css-tables] Allow backgrounds of collapsed rows to be drawn under spanning cells which are still visible to avoid a different rendering of the cells; fix #478
1 parent fb6cc0f commit ae678a1

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

css-tables-3/Overview.bs

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2716,14 +2716,24 @@ With a table-internal box as non-containing block parent</h3>
27162716
As stated in CSS 2.2, if a <a>table-cell</a> has its visibility set to that of collapse, it is rendered the same as
27172717
if it had <a href="http://www.w3.org/TR/CSS22/visufx.html#visibility">visibility: hidden</a> set.
27182718

2719-
If the <a>table-cell</a> is spanning more than one <a>table-track</a>, and the <a>table-track</a> is set to
2719+
<div class="note">
2720+
2721+
This happens when you set visibility:collapse on a table-row that contains a table-cell.
2722+
If you want to hide a row but continue to display its cells that span other rows,
2723+
set visibility:visible on those cells to prevent them from inheriting their value.
2724+
2725+
</div>
2726+
2727+
If the <a>table-cell</a> is spanning more than one <a>table-track</a>, and at least one of those <a>table-track</a> is set to
27202728
<a href="http://www.w3.org/TR/CSS22/visufx.html#visibility">visibility: collapse</a> then clip the content
2721-
to the <a>table-cell</a>'s border-box.
2729+
to the <a>table-cell</a>'s border-box. This means that the top left (top right in rtl) content of the cell will continue to show,
2730+
regardless of which of the tracks the cell spans has been collapsed.
27222731

27232732
<h4 id="visibility-collapse-track-rendering">Rendering a visibility: collapse table-track or table-track-group</h4>
27242733
When a <a>table-track</a> or <a>table-track-group</a> has <a href="http://www.w3.org/TR/CSS22/visufx.html#visibility">visibility: collapse</a>,
2725-
none of backgrounds, borders or outlines that are contributed by the cells within the given <a>table-track</a> or
2726-
<a>table-track-group</a> are painted.
2734+
all the backgrounds, borders or outlines that are contributed by the cells within the given <a>table-track</a> or
2735+
<a>table-track-group</a> will continue to be painted on cells that have not been fully collapsed
2736+
(because they spanned multiple tracks).
27272737

27282738

27292739
<!--

0 commit comments

Comments
 (0)