Re: [csswg-drafts] [css-tables] Please add table-span

I agree that there should be features in a future level of the CSS Tables module that can replicate the effects of `colspan` and `rowspan` in HTML, but I believe it should work differently to honor the CSS model and enable extended use cases.

Authors should be able to specify the spatial directions a table cell 1. may, 2. should or 3. must not merge with adjacent cells.

``` css
/*
  | #a | #b |
  | #c | #d |
*/
td#a {span-right: merge;}
td#b {span-left: merge;}

td#c {span-right: merge;}
td#d {span-left: none;/* or `avoid` */}

td#a {span-bottom: auto;}
td#c {span-top: auto;}

td#b {span-bottom: merge;}
td#d {span-top: auto;}
```

In this example, cells _a_, _b_ and _d_ would be merged in a complex, non-rectangular shape that would be impossible to achieve with HTML attributes.

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

Received on Tuesday, 28 November 2017 19:31:34 UTC