Darryl Yeo 🛠️ pfp
Darryl Yeo 🛠️

@darrylyeo

Pretext – JavaScript library for low-level text layout, exactly matching browsers’ current CSS implementation assuming default conditions. From ex-React maintainer Cheng Lou. Much needed primitive. You wonder how browsers never offered such an API until now. Hoping this sparks renewed urgency at the CSSWG to get CSS Houdini layout worklets out the door (or a better API in its place) so we don’t need a userland library for all these text positioning goodies. https://x.com/_chenglou/status/2037713766205608234 https://github.com/chenglou/pretext
3 replies
0 recast
12 reactions