Skip to content
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

[css2] paint order of table caption relative to parts of the table should be better defined #3661

Open
dbaron opened this issue Feb 20, 2019 · 3 comments
Labels

Comments

@dbaron
Copy link
Member

dbaron commented Feb 20, 2019

Based on a discussion I just had with @mattwoodrow:

There are some references in the Stacking Order appendix to "if the element is a ... table". It's not clear to me if these references mean to refer to "is a table grid box" or "table wrapper box". It would be nice and simple if they referred to table grid box, and the table wrapper box were just a regular block that treated its children (captions and table grid) in content order.

However, the problem with that is that the caption's content order might be in the middle of the table grid (though it must be between row groups). This makes it less clear about how the caption is supposed to be ordered in the paint order relative to pieces of the table. Having to order the caption in the middle of the table is complicated.

I think this needs to be better defined. It may also require some testing of existing implementations.

@dbaron dbaron added css-tables-3 Current Work CSS2 labels Feb 20, 2019
@dbaron
Copy link
Member Author

dbaron commented Feb 20, 2019

(I also don't remember if row-spanning is allowed to cross row groups. If it's not, this could also be simplified by moving the rules for tables to being rules for row groups, although that might be a bit weird for the table background.)

@FremyCompany
Copy link
Contributor

I just took a very brief look, but I'm now wondering how that actually matters in practice; I can't imagine a case where this matters and as a result I can't truly say I understood the problem.

My understanding is that it is basically impossible for the table grid (and its content) and the captions to overlap, unless a /transform is applied to the captions; that would make them move above all the other items, wouldn't it? (you can't apply a transform on the grid box)

@FremyCompany
Copy link
Contributor

(also, to anwer your question, cells cannot span across rowgroups)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants