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.
1 post total
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. |
@Una OMG YES! THIS IS SO EXCITING!
@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) :(
https://codepen.io/kizu/pen/ZEMeyrz
@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.