[csswg-drafts] [css-tables][css-overflow] Should contents of collapsed table track contribute to scrollable overflow? (#12689)

Loirooriol has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-tables][css-overflow] Should contents of collapsed table track contribute to scrollable overflow? ==
```html
<!DOCTYPE html>
<div id="scroller" style="height: 100px; overflow: scroll; scrollbar-width: none">
  <div style="display: table-row; visibility: collapse">
    <div style="min-width: 1px; height: 150px;"></div>
  </div>
</div>
<script>document.write(scroller.scrollHeight)</script>
```

| Gecko | Blink |
| - | - |
| 150 | 100 |

WebKit says 150 but that's irrelevant because it doesn't support `visibility: collapse`.

In Servo we are entirely skipping layout for the contents of a collapsed table track, so currently we output 100.
However, skipping layout is causing several problems so we plan to start laying out these contents, which means we will output 150.
It should be possible to lay them out while preventing them from contributing to scrollable overflow, though.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12689 using your GitHub account


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

Received on Saturday, 30 August 2025 16:45:25 UTC