
1033: 8 New CSS, JS and HTML Features You Should Know
Syntax - Tasty Web Development Treats
Modern web development is evolving with several powerful new APIs that streamline styling and logic. CSS now includes a simplified syntax for relative color transparency, alongside a `progress` function that calculates relative values between arbitrary units, eliminating the need for complex manual math. JavaScript introduces `Promise.allKeyed`, allowing developers to await multiple named promises concurrently without relying on array indexing. Typography control improves significantly with `text-box-trim`, which removes unnecessary whitespace from text containers, while the updated `attr` function enables passing data attributes directly into CSS properties. Additionally, new `sibling-index` and `sibling-count` functions simplify dynamic layout calculations, such as circular navigation, by providing direct access to element positions within their parent. These additions collectively reduce the reliance on external libraries and complex workarounds, favoring native, declarative solutions for common front-end challenges.
Sign in to continue reading, translating and more.
Open full episode in Podwise