SMRTR ProgrammingSep 19, 2024Dev.to

New Values and Functions in CSS

SMRTR summary

The CSS Working Group released a draft of CSS Values and Units Module Level 5, introducing several new features. These include expanded attr() functionality, new functions like calc-size() and first-valid(), and randomization capabilities with random() and random-item(). The update also adds sibling-related functions, a toggle() function for nested elements, and new notation for functional arguments. These changes aim to simplify CSS code and provide more flexibility for developers. While still in draft form, these additions show promise for enhancing CSS capabilities and streamlining common tasks.

SMRTR provides this summary for quick context. The original article belongs to Dev.to.

Read the original article
SMRTR Programming

Get the next batch of curated stories in your inbox.

This archive is built from SMRTR newsletter stories. Subscribe for hand-picked stories without the extra noise.

Related Stories

Browse Programming
ProgrammingAug 25, 2026

The End of Programming

AI rewrote Bun's entire JavaScript runtime—one million lines of code in eleven days—for ~$165,000, with minimal human involvement. As AI-generated code surges exponentially,...