#CSS text-box a very exciting feature! available in: Chrome 133 & Safari 18.2 My post on Chrome Developers: developer.chrome.com/blog/css-tex... ↪ nerdy.dev/text-box-trim
36 reposts191 likes
#CSS text-box a very exciting feature! available in: Chrome 133 & Safari 18.2 My post on Chrome Developers: developer.chrome.com/blog/css-tex... ↪ nerdy.dev/text-box-trim
36 reposts191 likes
there is syntax for it; but 100%, some fonts simply won't / can't benefit from it nerdy.dev/notebook/tex... you can change fonts there and see which provide good data to the browser engine and which don't (or intentionally don't)
5 minutes with this text-box syntax and feature explorer is all you need to ramp up! nerdy.dev/notebook/tex...
In Chrome (v131 with text-box-trim flag), `border` seems to disable `text-box`. Is that expected behavior? codepen.io/samlittlefai...
Very cool! Any developer who works off Adobe XD reference files should be shouting at Firefox all day long about getting this adopted. The text boxes in XD made pixel-pretty-close a mathematical puzzle involving font-height (half, if memory serves?) and neighboring columns paddings/margins. No more!
Yay! 1. Are MDN docs yet to be written for this? 2. Is there a way to do trim the space horizontally as well using this or is that missing? I tried this on Safari 18.2 but there's still some space at left/right edges: jsbin.com/qivegoziqo/1...