mirror of
https://github.com/penpot/penpot.git
synced 2026-11-21 01:22:01 +00:00
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