We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
https://drafts.csswg.org/css-align/#baseline-export
If any cells in the row participate in first baseline/last baseline alignment along the inline axis [...]
If there are no cells, the condition is false, so...
Otherwise, the first/last baseline set of the row is synthesized from the lowest and highest content edges of the cells in the row.
What if there are no cells?
<!DOCTYPE html> a <table style="display: inline-table; border: 10px solid; margin: 10px; baseline-source: first; width: 60px"> <tr style="height: 20px; outline: solid cyan"></tr> <tr style="height: 20px; outline: solid orange"><td>b</td></tr> <tr style="height: 20px; outline: solid magenta"><td></td></tr> </table> <table style="display: inline-table; border: 10px solid; margin: 10px; baseline-source: last; width: 60px"> <tr style="height: 20px; outline: solid cyan"></tr> <tr style="height: 20px; outline: solid orange"><td>c</td></tr> <tr style="height: 20px; outline: solid magenta"></tr> </table>
baseline-source
The text was updated successfully, but these errors were encountered:
Note I think we (try) and follow the definition here: https://drafts.csswg.org/css-tables-3/#table-row-baseline
Sorry, something went wrong.
But it's still the same problem:
If a row doesn’t have any cell that has 'vertical-align: baseline', the baseline of that row is the bottom content edge of the lowest cell in the row.
What's the lowest cell, if there is no cell?
https://github.com/chromium/chromium/blob/5883f5a39a5b3faa1b6c38f028660cab21528174/third_party/blink/renderer/core/layout/table/table_layout_utils.cc#L1752
// Empty row's baseline is top. return LayoutUnit();
I'm not sure if that comes from any spec.
No branches or pull requests
https://drafts.csswg.org/css-align/#baseline-export
If there are no cells, the condition is false, so...
What if there are no cells?
baseline-source
on tables. The 1st baseline is placed at the top of the content area of the 1st row.The text was updated successfully, but these errors were encountered: