openpencil/tests
Lay Flags 7ae97935e2
fix(layout): resolve design token variables before passing to yoga-layout (#202)
* fix(layout): resolve design token variables before passing to yoga-layout

applyPadding() and applyAutoLayout() passed variable references like
$--spacing-lg directly to yoga-layout's setPadding()/setGap() which
expects numeric values, causing a crash.

Now resolves variable references via ctx.resolveNumber() before
assignment, following the same pattern already used by parseSize()
and applyCornerRadius() in the same file.

Fixes open-pencil/open-pencil#201

* test(layout): add regression tests for variable padding/gap resolution (#201)
2026-04-16 10:11:28 +03:00
..
e2e refactor(tauri): clean up external link helper 2026-04-15 11:03:31 +03:00
engine fix(layout): resolve design token variables before passing to yoga-layout (#202) 2026-04-16 10:11:28 +03:00
figma Playwright visual regression testing with Figma CDP reference 2026-02-28 07:32:15 +03:00
fixtures Add Arabic and RTL support 2026-03-29 21:06:29 +03:00
helpers Merge PR #70: E2E test coverage + mutation unit tests 2026-03-07 23:47:00 +03:00