
Computing with CSS Layout: How Grid, Flexbox, and anchor() Sort and Calculate Faster Than Raw calc()
Trying to sort or rank lists with raw calc() bloats stylesheets to megabytes and slows down the browser. Agustín Capeletto showed how to offload math to the layout engine itself: a Grid auto column finds the max, Flex sums widths, order sorts, and 100cqw / 1px with @property and anchor() feeds the result back into a variable.
Inside: a breakdown of the mechanics, a live median demo, the 63-function dCSS library, and the real limits of this approach.
