W3C home > Mailing lists > Public > public-css-archive@w3.org > October 2018

Re: [csswg-drafts] [css-ui-4][css-tables-3] should table outlines surround captions too?

From: Archibald2 via GitHub <sysbot+gh@w3.org>
Date: Sun, 21 Oct 2018 21:08:01 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-431704058-1540156080-sysbot+gh@w3.org>
Much of this issue stems from very poor HTML standards: <label>, <caption> and <figcaption> have very differing constructs for essentially the same purpose.

In my view an outline should always outline the whole of an element, not just part of it.  A caption is within a table element so should be included within the outline of a table. 

I note that if a listener is added to a <table> element, the whole area of the element becomes responsive, including the caption (Chrome, Firefox, Edge & IE11 at least).

A workaround for differing browser behaviour is to put a table within a <figure> element and use <figcaption> instead of <caption>.  As <figure> and <figcaption> have much more sensible HTML coding and semantics, in my view use of <caption> and <label> should therefore become deprecated in favour of use of <figcaption> within a <figure>.

GitHub Notification of comment by Archibald2
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3184#issuecomment-431704058 using your GitHub account
Received on Sunday, 21 October 2018 21:08:02 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:38 UTC