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][css-tables] border-spacing when there are no tracks #10133

Closed
Loirooriol opened this issue Mar 25, 2024 · 1 comment
Closed

[css2][css-tables] border-spacing when there are no tracks #10133

Loirooriol opened this issue Mar 25, 2024 · 1 comment
Labels

Comments

@Loirooriol
Copy link
Contributor

I don't think this is in the specs, but everybody agrees that if a table has no tracks, then no border-spacing is added:

<!DOCTYPE html>
<table style="border: 20px solid; border-spacing: 10px"></table>
<br>
<table style="border: 20px solid; border-spacing: 10px">
  <td></td>
</table>

imatge

@Loirooriol
Copy link
Contributor Author

Nevermind, I guess this is in https://drafts.csswg.org/css-tables-3/#total-horizontal-border-spacing

The total horizontal border spacing is defined for each table:

  • For tables laid out in separated-borders mode containing at least one column, the horizontal component of the computed value of the border-spacing property times one plus the number of columns in the table
  • Otherwise, 0

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

1 participant