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

[css-position][css-tables] Need to define relative positioning on table cells, rows and row groups in collapsing border model #11515

Open
Loirooriol opened this issue Jan 16, 2025 · 0 comments
Labels
css-position-3 Current Work css-tables-3 Current Work

Comments

@Loirooriol
Copy link
Contributor

Loirooriol commented Jan 16, 2025

https://drafts.csswg.org/css-position/#relpos-insets
https://drafts.csswg.org/css-tables/#border-collapsing

<!DOCTYPE html>
<style>td { border: 10px solid rgba(0, 0, 0, 0.5); background: cyan }</style>
<table style="border-collapse: collapse">
  <td>A</td><td>B</td>
</table>
<table style="border-collapse: collapse">
  <td>A</td><td style="position: relative; left: 0">B</td>
</table>
<table style="border-collapse: collapse">
  <td>A</td><td style="position: relative; left: 50px">B</td>
</table>
<table style="border-collapse: collapse">
  <tr style="position: relative; left: 50px">
    <td>A</td><td>B</td>
  </tr>
</table>
<table style="border-collapse: collapse">
  <tbody style="position: relative; left: 50px">
    <td>A</td><td>B</td>
  </tbody>
</table>
Gecko Blink WebKit

It's surprising to say at least that adding position: relative on a cell shrinks the background area...

@Loirooriol Loirooriol added css-position-3 Current Work css-tables-3 Current Work labels Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
css-position-3 Current Work css-tables-3 Current Work
Projects
None yet
Development

No branches or pull requests

1 participant