-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rendering of multiple captions in an HTML table #10973
Comments
This is a conformance requirement and irrelevant to user agent implementations.
These are requirement on what the JavaScript APIs do and are irrelevant to rendering. Table rendering is specified in https://drafts.csswg.org/css-tables-3/ (in combination with https://html.spec.whatwg.org/#tables-2), so this is probably best as a CSSWG issue. Skimming, https://drafts.csswg.org/css-tables-3/#bounding-box-assignment seems possible relevant. |
Thanks @domenic And also uncertainty such as with funny things, still in HTML such as:
which is another constraint. It doesn't seem taken into account on the CSS-tables-3 side. And it's not implemented by any browsers.
They all display both.
In the rendering? In the DOM? or is it just an authoring recommendation? |
Yeah reading the CSS spec, there is probably a bug in Gecko in fact. |
We probably can close. |
Another authoring conformance constraint, telling web developers not to add certain tags to their markup :) |
What is the issue with the HTML Standard?
This is an issue to determine if
Currently Firefox shows only one caption while Chrome and Safari show multiple, changing the layout.
Code:
Let's make a table with multiple captions:
Rendering:
Specification:
https://html.spec.whatwg.org/multipage/tables.html#the-caption-element
The table element is defined as:
https://html.spec.whatwg.org/multipage/tables.html#the-table-element
I wonder if the requirement is one and only caption if it should be clearly mentioned here. The
a caption
is vague.Then there is also this section which implies only one.
https://html.spec.whatwg.org/multipage/tables.html#dom-table-caption
Compatibility
This is a bit of the dark part. It would be good to know, how many tables out there have multiple
caption
elements with different content. If it's very minor then probably, Safari and Chrome should align to Firefox behavior. If there are a significant number of them, changing the behavior of Chrome/Safari might loose information.Probably a query could help with that.
WebKit bug: https://bugs.webkit.org/show_bug.cgi?id=286661
The text was updated successfully, but these errors were encountered: