W3C home > Mailing lists > Public > www-style@w3.org > May 2018

Re: multi-col table layout Fwd: accessible tables

From: Chaals Nevile <chaals@yandex.ru>
Date: Tue, 08 May 2018 17:10:04 +0200
To: "Florian Rivoal" <florian@rivoal.net>
Cc: www-style@w3.org
Message-ID: <op.zipa22tond6f5a@ordhord.home>
Florian, many thanks for this...

On Tue, 08 May 2018 14:47:49 +0200, Florian Rivoal <florian@rivoal.net>  
wrote:

> This should be doable with standard css. Multicol implementations are  
> still somewhat buggy and/or incomplete, but otherwise this should work,  
> and it does in chrome and safari (maybe edge also, but I'm on a mac, so  
> I did not test):

It did work for me in edge...

> The only difference with your plaintext rendering is that the column  
> headers are not repeated. If that's needed to, the story gets longer.

That is needed too, so I would be grateful for the details...

In particular, I am not sure why the table is display:block - I am  
guessing that it is because multicol only works within block.

(And if you have any insight into how far this might be from working in  
Firefox, that would be helpful too)

cheers

Chaals

> I'll give you the details if you care, but for now I'll skip in case you  
> don't.
>
> —Florian
>
>> On May 7, 2018, at 16:43, Chaals Nevile <chaals@yandex.ru> wrote:
>>
>> Hi,
>>
>> This request comes from accessibility requirements for presenting a  
>> table, and when I was playing around with it there seems no way to  
>> break up a table over two or more columns, as described below.
>>
>> As far as I can tell the right place to handle this is CSS rather than  
>> HTML (although it may be in the intersection) and being a feature  
>> request for tables I have a nasty suspicion it is not trivially easy,  
>> but asking seems worthwhile.
>>
>> Any thoughts to offer?
>>
>> (The alternative is to make a JS library to draw the table and decorate  
>> it with aria and so on, which as far as I can see is entirely feasible  
>> but kind of frustrating...)
>>
>> cheers
>>
>> Chaals
>>
>> ------- Forwarded message -------
>> From: "Michael A. Peters" <mpeters@domblogger.net>
>> To: "WAI Interest Group" <w3c-wai-ig@w3.org>
>> Cc:
>> Subject: accessible tables
>> Date: Fri, 04 May 2018 22:21:27 +0200
>>
>> Hello,
>>
>> I am sure this is covered somewhere, but I just can not find where.
>>
>> Tabular data, 9 pairs of key = value data. But the table cell contents
>> are short, so instead of just two columns I want to do four columns
>> where the third is a continuation of the first and the fourth is a
>> continuation of the third, e.g.
>>
>> [ caption of the table]
>> [ key ] [ value ] [ key ] [ value ]
>> 001     first     006     sixth
>> 002     second    007     seventh
>> 003     third     008     eighth
>> 004     fourth    009     tenth
>> 005     fifth
>>
>>
>> Is there a way to mark that up so screen readers will read them as pairs
>> in the order 001 to 009 in order?
>>
>> I can't be the first to have needed this.
>>
>>
>> --
>> Chaals: Charles (McCathie) Nevile    find more at https://yandex.com
>> Using Opera's long-abandoned mail client: http://www.opera.com/mail/
>> Is there really still nothing better?
>>
>


-- 
Chaals: Charles (McCathie) Nevile    find more at https://yandex.com
Using Opera's long-abandoned mail client: http://www.opera.com/mail/
Is there really still nothing better?
Received on Tuesday, 8 May 2018 15:10:24 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 8 May 2018 15:10:25 UTC