Email or username:

Password:

Forgot your password?
1 post total
Una Kravets

Exploring text-wrap balancing in Chrome Canary!

Just landed yesterday, it's very cool to see this one-line progressive enhancement live.

Currently limited to 4 lines of text for rendering performance purposes.

youtu.be/L9ihWHngk9E

Show previous comments
Roma Komarov

@Una Nice! Quick testing of `text-wrap: balance` in Chrome Canary:

✅ Supports hyphenation
✅ Supports non-breakable spaces
✅ Supports inline/inline-block elements inside
❌ Does not support `text-align` (buggy) :(

codepen.io/kizu/pen/ZEMeyrz

Scott Kellum :typetura:

@Una Are you planning on doing perf tweaks to get up to the 10 lines of text noted in the spec? Maybe the spec threshold needs to be lowered if it’s too expensive.

> UAs may treat this value as wrap if there are more than ten lines to balance.

Go Up