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: Morten Stenshorne <mstensho@opera.com>
Date: Tue, 10 Feb 2015 11:24:32 +0100
To: "Axel Dahmen" <brille1@hotmail.com>
Cc: www-style@w3.org
Message-ID: <87sieem5cv.fsf@aeneas.oslo.osa>
"Axel Dahmen" <brille1@hotmail.com> writes:

> I see. I didn't find this sentence in the spec myself.
>
> OK, then. Wouldn't this be something to be worth amending the spec
> with? It would save a lot of CSS necessary to achieve the same result
> right now. Not to mention the additional HTML.

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 10:25:15 UTC

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