Re: [csswg-drafts] [css-tables] visibility: collapse

https://jsfiddle.net/dgrogan/e1du2oaL/ compares behavior for collapsing a row containing a visible rowspan cell.

I think the behavior agreed on in the last two comments (https://github.com/w3c/csswg-drafts/issues/478#issuecomment-324493413 https://github.com/w3c/csswg-drafts/issues/478#issuecomment-326172013) is Chrome's -- rowspan cell renders identically no matter which row is collapsed.

But we haven't explicitly talked about cell backgrounds.

The current spec [says](https://drafts.csswg.org/css-tables-3/#visibility-collapse-track-rendering):
> When a table-track or table-track-group has visibility: collapse, none of backgrounds, borders or outlines that are contributed by the cells within the given table-track or table-track-group are painted.

No exception is made for backgrounds of cells that are still partially visible because of rowspan / visibility:visible like in the jsfiddle. And indeed, neither FF nor Edge paints the background when the visible spanning cell is a child of a collapsed row. But that's in conflict with

> treat collapsing any row or column of a column/row-spanning cell the same

So I propose that the planned spec edits include an exception in the above section that allows for painting backgrounds/borders/outlines when the cell is partially visible. Thoughts?

@FremyCompany, in the jsfiddle, when the top row is collapsed Edge doesn't paint the spanning cell's background. But Edge does paint the background for A in https://wptest.center/#/uznwd6, which is the same case as far as I can tell.

-- 
GitHub Notification of comment by davidsgrogan
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/478#issuecomment-337775398 using your GitHub account

Received on Thursday, 19 October 2017 01:44:07 UTC