Skip to content

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

Open

Description

@Loirooriol
<!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, Servo
150 100

WebKit says 150 but that's irrelevant because it doesn't support collapsed table tracks.

In Servo we used to entirely skip layout for the contents of a collapsed table track, implying 100. However, skipping layout was causing several problems, so now we lay out these contents. That would imply 150, but we added some logic to prevent them from contributing to scrollable overflow, so we kept 100. servo/servo#39027

Relevant specs:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    css-overflow-3css-tables-3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions