w3c / csswg-drafts

CSS Working Group Editor Drafts
https://drafts.csswg.org/
Other
4.51k stars 671 forks source link

[css-tables][css-position] Disagreement about percentage resolution in insets of relpos caption #11171

Open Loirooriol opened 2 weeks ago

Loirooriol commented 2 weeks ago
<!DOCTYPE html>
<table border style="padding: 25px">
  <caption style="position: relative; left: 100%; height: 20px; background: cyan"></caption>
  <td style="width: 50px; height: 50px"></td>
</table>

Firefox shifts the caption 110px to the right, but Blink and WebKit only shift it 58px. So Firefox resolves against the border box of the table wrapper box, while Blink&WebKit use the table grid box. The spec claims that the table wrapper box is a block container, so I would expect to resolve against the content box of the table wrapper box.