Files
rust_browser/tests/goldens/fixtures/152-grid-negative-line-numbers.html
Zachary D. Rowitsch 137a89403b Fix grid auto-placement and negative line number resolution
Two grid placement bugs:

1. Items with explicit column but auto row (e.g. `grid-column: 2`)
   were hardcoded to row 0 by merge_placements, causing overlap with
   earlier rows. Now only fully-specified placements skip auto-placement,
   and Phase 2 respects explicit column/row constraints.

2. Negative grid line numbers were off-by-one. CSS Grid has N+1 lines
   for N tracks, so line -1 should resolve to index N (after the last
   track), not N-1. This caused `grid-column: 1 / -1` to span N-1
   columns instead of all N, producing asymmetric gutters.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-12 22:34:59 -05:00

397 B