Skip to main content

Module taffy_bridge

Module taffy_bridge 

Source
Expand description

CssStyletaffy::Style converter.

Inspired by stylo_taffy (Servo) but kept minimal: we only translate the layout-affecting properties. Paint properties (color, background, transform, filter, etc.) are read separately by the paint pass.

Currently a stub — fleshed out in step 3 of the migration plan.

Structs§

ConversionContext

Functions§

to_taffy_style
Convert a CssStyle into a taffy::Style. Properties not relevant to layout are ignored. Unsupported / unset properties fall back to taffy defaults (which match CSS initial values).