diff --git a/crates/docx/tests/it/fixtures.rs b/crates/docx/tests/it/fixtures.rs index 66c8cd475..e1d4f798f 100644 --- a/crates/docx/tests/it/fixtures.rs +++ b/crates/docx/tests/it/fixtures.rs @@ -702,6 +702,11 @@ fn spanning_cells_size_a_gridless_table_as_in_word() { let Block::Table(t) = &*d.body[0] else { panic!() }; assert_eq!(t.grid.len(), 63); assert_eq!(t.grid[62], 50.0); + // With no width of its own there, the kept column takes its share of the span, not all of it. + let d = read_body(&format!("{ones}{ones}{}", tc(300, 2))); + let Block::Table(t) = &*d.body[0] else { panic!() }; + assert_eq!(t.grid.len(), 63); + assert_eq!(t.grid[62], 150.0); } #[test]