mirror of
https://github.com/penpot/penpot.git
synced 2026-11-21 01:22:01 +00:00
With the WASM engine, a grid track sized a fill child by its minimum width alone, so a fill child that is itself a grid shrank to its cell and its content overflowed it. The CLJS engine sizes the track by the larger of that minimum and the size the child's content needs, as CSS gives a grid item its min-content size (user decision: match CLJS). `min_size` now takes, for a fill grid child, its content size: its tracks at the sizes its children need, its gaps and its paddings, as a grid that hugs sizes itself. Found by the WASM replay of the pinned generated programs (program 290, a fill grid turned 45 degrees in a grid), which passes with it. Test: render-wasm `test_a_fill_grid_child_takes_the_size_its_content_needs`. WASM only; the benchmark covers JVM code and is not run. AI-assisted-by: claude-opus-5-5