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