W3C home > Mailing lists > Public > www-style@w3.org > February 2015

Re: [css-tables] Missing definition of table row borders if border-collapse: separate?

From: Axel Dahmen <brille1@hotmail.com>
Date: Tue, 10 Feb 2015 15:16:34 +0100
To: www-style@w3.org
Message-ID: <mbd3vq$crq$1@ger.gmane.org>
Here's my suggestion in answer to your question:

Please refer to my animated preview images here: http://imgur.com/a/IbYas

Table rows, table columns and table column groups should be able to be 
styled fully, like inline-block elements, including margins, border and 
padding.

A border spanning a table row or column is supposed to be continuous 
throughout the row/column element.

Usually, a table cell's properties would override a table row's/column's 
property. To have the table row/column excel the table cell definition, a 
new table cell property should be introduced:

table-cell-priority: <table-cell-priority-type>

having    <table-cell-priority-type> = low | default
and         default value: default

Regards,
Axel Dahmen



----------------------------------------------------
One might say that it's somewhat weird that asking for separate borders
makes them "disappear" on table rows. Then again, even in the collapsed
borders model, the final borders are really associated with cells anyway
(and never with rows), even if you specify them on rows, columns or what
not.

But if we decide to allow borders on rows, what should we do if we
e.g. have a cell with rowspan > 1? And what about border-spacing? Insert
gaps in the rows' borders?

<table style="border-spacing:20px;">
    <tr style="border:10px solid blue;">
        <td>content</td>
        <td rowspan="2">content</td>
    </tr>
    <tr style="border:10px solid red;">
        <td>content</td>
    </tr>
</table>

-- 
---- Morten Stenshorne, developer, Opera Software ASA ----
------------------ http://www.opera.com/ -----------------
Received on Tuesday, 10 February 2015 14:19:15 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:52:01 UTC