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

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 using your GitHub account

Received on Sunday, 21 October 2018 21:08:02 UTC