Re: [csswg-drafts] [css2][css-tables] Do collapsed tracks also shrink the table wrapper box or only the table grid box? (#11408)

I tried to align Servo with Gecko, but there are various tests that check that collapsed columns shrink the `offsetWidth` of the table. Seems like Gecko is doing something special:

![](https://github.com/user-attachments/assets/0418a908-bc33-465f-a427-851f1d81f163)

```html
<!DOCTYPE html>
foo
<table style="display: inline-table; width: 100px; height: 50px; border: 5px solid; outline: 5px solid magenta; box-sizing: content-box">
  <col style="visibility: collapse"></col><col></col>
</table>
bar
<pre></pre>
<script>
var t = document.querySelector("table");
document.querySelector("pre").textContent = `
  clientWidth: ${t.clientWidth}
  offsetWidth: ${t.offsetWidth}
  getBoundingClientRect().width: ${t.getBoundingClientRect().width}
  getClientRects()[0].width: ${t.getClientRects()[0].width}
`;
</script>
```

-- 
GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11408#issuecomment-2578648279 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 8 January 2025 20:55:16 UTC