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

Include border-spacing gutters in compute_inline_content_sizes #31337

Merged
merged 1 commit into from Feb 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions components/layout_2020/table/layout.rs
Expand Up @@ -1185,6 +1185,9 @@ impl Table {
inline_content_sizes.push(row_inline_content_sizes);
total_size += max_content_sizes_in_column;
}
let gutters = self.border_spacing().inline * (self.size.width as i32 + 1);
total_size.min_content += gutters;
total_size.max_content += gutters;
(total_size, inline_content_sizes)
}

Expand Down
6 changes: 0 additions & 6 deletions tests/wpt/meta/css/css-tables/absolute-tables-005.html.ini
Expand Up @@ -4,9 +4,3 @@

[.table 2]
expected: FAIL

[.table 3]
expected: FAIL

[.table 4]
expected: FAIL
6 changes: 0 additions & 6 deletions tests/wpt/meta/css/css-tables/tentative/table-minmax.html.ini
Expand Up @@ -2,12 +2,6 @@
[table 2]
expected: FAIL

[table 3]
expected: FAIL

[table 4]
expected: FAIL

[table 5]
expected: FAIL

Expand Down