Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Taffy Rust CSS layout engine

Document status: reviewed. Canonical source.

Summary

Taffy is a Rust layout library implementing CSS Block, Flexbox and Grid algorithms and is embedded by Servo, Bevy, Slint and other systems. Its traitified style boundary is useful for integrating a separate authored model with a standards-derived evaluator.

NUIF relevance

Recommended initial evaluator for CSS-compatible layout families, but not the canonical NUIF layout model. NUIF needs a superset vocabulary and explicit lowering/loss reports for unsupported CSS features and non-CSS layout families.