M2: layout — LayoutEngine on Milky2018/chicle, 1,038-fixture conformance suite (#3)

This commit was merged in pull request #3.
This commit is contained in:
nandi committed 2026-11-24 22:14:04 +00:00
1 parent 10ee6d1f21
commit b5daf13d47
60 files changed
+46155 -27

No files matched your search

+25
View File
@@ -0,0 +1,25 @@
# Layout conformance suite
1,038 layout fixtures, run against `Milky2018/chicle`, the layout engine
behind `experiments/gpui/layout`. They are taffy's generated layout fixtures
(flexbox, grid, block, measured leaves), as ported to MoonBit in
`Milky2018/moon_taffy@0.5.3` (`src/tests/upstream`). That package no longer
compiles on the current MoonBit toolchain; its successor, chicle, does.
Run this suite before raising the chicle version in the root `moon.mod`:
```sh
cd conformance/chicle
moon test --target all
```
As of chicle 0.6.3 and moon 0.1.20261119, all 1,038 tests pass on wasm,
wasm-gc, js and native, in about 40 seconds. The suite is kept outside the
main module so that `moon test` at the repository root stays fast.
The only changes from upstream are the renames `TaffyTree` → `ChicleTree`
and `TaffyError` → `ChicleError`, and the import paths in `moon.pkg`.
License: Apache-2.0. Copyright 2025 International Digital Economy Academy
(see the file headers). The fixtures derive from taffy
(https://github.com/DioxusLabs/taffy, MIT).