







One CSS property just killed every auto-resize textarea script you've ever written. Seriously, one line. The property is field-sizing: content
Pretext Does What CSS Can't — Measuring Text Before the DOM Even Exists | HackerNoon
Cheng Lou's Pretext library measures multiline text height without touching the DOM — unlocking layout capabilities CSS has never been able to offer.

box-sizing CSS property - CSS | MDN
The box-sizing CSS property sets how the total width and height of an element is calculated.

2050141 - [text-box-trim] Set layout.css.text-box.enabled for all users
RESOLVED (sajidanwar94) in Core - Layout: Block and Inline. Last updated 2026-07-15.
Two CSS Properties for Trimming Text Box Whitespace | CSS-Tricks
The text-box-trim and text-box-edge properties in CSS enable developers to trim specifiable amounts of the whitespace that appear above the

Shrink-wrap Text with `position-anchor`
Normal text wrapping can leave big gaps in your container, which can become even more exaggerated with the new-ish CSS values of text-wrap: balance and text-wrap: pretty. You almost certainly want …

New in Chrome 150 | Blog | Chrome for Developers
CSS text-fit property, Focusgroup declarative keyboard navigation, and CSS background-clip border-area.
Controlling when CSS custom property values are computed
The default might not be what you expect, and it has a big impact on your styles.

Learn CSS Layout
Having no layout whatsover is almost ok if all you want is one big column of content. However, if a user makes the browser window really wide, it gets kind of annoying to read: after each line your eyes have a long distance to travel right-to-left to the next line. Try resizing your browser to see what I mean!
Josh W. Comeau (@joshwcomeau.com)
✨ Neat CSS trick ✨ We can use `width: fit-content` to have a container element shrink to fit its element's width. This is useful for cards! But if that card has any text content, that text will blow out the width of the card, since it won't automatically linewrap. So we wind up with this issue:
Revealing Text With CSS letter-spacing | CSS-Tricks
Until we get something like ::nth-letter, there are still some really cool text effects we can make from existing CSS features, like letter-spacing, ::first-word and ::first-line.

Applying Author Styles | Web Browser Engineering
In the previous chapter we gave each pre element a gray background. It looks OK, and it is good to have defaults, but sites want a say in how they look. Websites do that with Cascading Style Sheets (CSS), which allow web authors (and, as we’ll see, browser developers) to define how a web page ought to look.
Editing HTML in the browser ·
Live editing of CSS in the browser works great. You get to see your changes immediately, and there’s nothing like live feedback to keep you rolling, right? The Style Editor in Firefox makes it really easy to edit your CSS and save when you’ve got everything looking just right.
Well... 🫣 Today I learned there's a CSS `zoom` property that scales an element's visual appearance and (!) layout. I can't be the only one hearing about this for the first time, right? stefanjudis.com/today-i-learned/css-zoom-to-s…