The WASM grid engine laid out children differently from the CLJS engine
and from CSS. It centered a child in its cell without its margins, put a
child aligned to the end past the cell by its end margin, and sized auto
and flex tracks by a child's bounds without its margins, so a grid that
hugs its children came out narrower. A child now sits in its cell as
CSS places its margin box: after its start margin, centered with its
margins, or before its end margin. A track takes the size of its
children's margin boxes.
Found by laying out random grid boards in a WASM workspace and reflowing
the same objects with the CLJS engine.
The JVM benchmark does not run the WASM engine; it is not run.
AI-assisted-by: claude-opus-5-5
The grid layout of the WASM renderer counted the gaps between tracks as
the number of tracks less one, which underflows for an empty track list
(a panic in a debug build, a wrapped count in release), and spread the
space between tracks over that count, a division by zero for one track.
An empty list has no gap, and space between fewer than two tracks
starts them at the padding.
Tests: test_space_between_without_tracks_places_nothing,
test_space_between_with_one_track_starts_it_at_the_padding; the
render-wasm tests pass (364).
The component sync benchmark does not reach the renderer and is not run.
AI-assisted-by: claude-opus-5-5
A turned board that fills its flex parent is skewed, and so is a grid
board it holds. The grid took a child's coordinates along the frame's
axes as dot products with the unit axes and rebuilt points as
h * hv + v * vv, which only holds for perpendicular axes: in a skewed
frame the child landed hundreds of pixels outside the grid, further the
further the frame sat from the page origin. frame_coords solves
p = hv * h + vv * v for any pair of axes.
cargo test --bin render_wasm: 358 tests pass. The component benchmark
covers common sync code, not render-wasm, and is not run.
AI-assisted-by: claude-opus-5-5
* 🐛 Skip identity transforms in layout reflow propagation
Layout reflow emitted identity transforms for unchanged children, which
fanned out through the whole subtree on every drag frame and froze large
files in the WASM renderer.
* 🐛 Fix exclude boolean rendering in render WASM