Files
rust_browser/tests/goldens/expected/152-grid-negative-line-numbers.dl.txt
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

7 lines
344 B
Plaintext

DisplayList items=5
SolidRect rect=(0, 0, 300, 30) color=#eeeeee
Text rect=(0, 0, 19.418503, 16) text="Full" color=#000000 font_size=16
SolidRect rect=(50, 30, 250, 25) color=#cccccc
Text rect=(50, 30, 22.613804, 16) text="Last" color=#000000 font_size=16
Text rect=(75.66813, 30, 20.581497, 16) text="two" color=#000000 font_size=16