Files
rust_browser/tests/goldens/expected/094-table-vertical-align.layout.txt
Zachary D. Rowitsch 2ba3e4ec91 Fix table intrinsic width ignoring CSS width hints and empty table height
Two bugs in table layout:

1. measure_table_intrinsic_width() only measured text/child content,
   ignoring explicit CSS width properties on cells. Cells with
   width: 12px but empty content measured as 0px, making auto-width
   tables too narrow. Fixed by applying Length width hints inline
   during the single-column measurement pass.

2. Empty tables (no rows) ignored specified_height in their early-return
   path, always setting height to 0. Fixed by calling
   calculate_block_height() in both separate and collapsed border model
   paths to resolve explicit CSS heights.

Promotes 3 WPT tests from known_fail to pass.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-28 09:49:17 -05:00

2.3 KiB