Yangyi
17K posts

Yangyi
@yangyi
人机协同架构师 Reverb Marketing布道者 新时代人机协同基站 - 牛马AI👉🏻https://t.co/QJVShfywLx Yangyi实战手记👉🏻https://t.co/Pkue4jV8hK






Dear developers (and anyone who's interested in the future interface of web): our boy @imCGQAQ just got shape() accepted as a valid value for shape-outside, which means text wraps around any curve you draw, on a left-floated figure, in one line of CSS, for every Chrome user on Earth. Chrome 149 will ship this feature next week. shape-outside has been in the spec since 2014. for eleven years it accepted exactly five values: circle, ellipse, polygon, inset, image. want a Bézier? approximate it with 40 hand-counted vertices and live with the jagged edges. that compromise is over. and yes — overlaps with @_chenglou's pretext. the difference: pretext is a JS text engine in userland, you build any layout on top. ours is one CSS property in the browser itself, applied to you. opposite ends of the stack. 3 demos. each is a real CSS file, no JS layout code. ↓















