Syntax - Tasty Web Development Treats
Syntax - Tasty Web Development Treats

1033: 8 New CSS, JS and HTML Features You Should Know

Scott and Wes run through eight new CSS, JS, and HTML features landing in browsers; including the relative alpha() color function, the progress() function for calculating values between units, Promise.allKeyed(), and native camera and microphone elements. They also get into an upgraded attr(), shrin

Featured Speakers

Wes Bos & Scott Tolinski - Full Stack JavaScript Web Developers Host

Topics Discussed

Episode Summary

Executive Summary: The episode reviews eight emerging CSS, HTML, and JavaScript APIs that promise to reduce reliance on JavaScript utilities and make common UI patterns more declarative. The hosts highlight strong browser support for several CSS features, discuss the practical value of promise.allKeyed, and debate the usefulness of experimental camera/microphone elements, while emphasizing progressive enhancement and runtime flexibility.

Main Topics: CSS relative color alpha syntax: A new shorthand lets developers take an existing color and apply transparency directly using a slash-separated alpha value, enabling runtime color manipulation in CSS without Sass-like precompilation. CSS progress function: A function for calculating where a value sits between a start and end point, returning a unitless progress value that can be coerced into other units with calc(). JavaScript promise.allKeyed: A native API that resolves an object of named promises concurrently and returns the same object shape with resolved values, improving readability and destructuring. Experimental HTML camera and microphone elements: Proposed declarative elements for requesting camera/microphone access, discussed as potentially useful but questioned for limited benefit versus existing JavaScript APIs. CSS attr() modernization: The attribute function is expanded beyond content so attributes can feed values like width, height, and background directly into CSS, making components more prop-like. CSS sibling index and sibling count: These functions expose an element’s position among siblings and the total sibling count, simplifying layouts like evenly spaced circular menus without JavaScript. Shrink-to-fit container sizing: A sizing feature that lets a parent element shrink-wrap around fit-content content more easily, solving a niche but frustrating layout problem. Text box trim and text box edge: Typography controls that trim extra line-box space above and below text, improving vertical alignment and spacing consistency in buttons and labels.

Key Arguments: These APIs matter because they shift common patterns from JavaScript and build tools into native runtime browser capabilities. Relative color alpha and attr() are useful because they make CSS more dynamic without requiring Sass or custom JS plumbing. promise.allKeyed improves code ergonomics by letting developers await an object of promises instead of managing arrays and indices. The camera/microphone elements may be less compelling because they still require JavaScript event handling after permission is granted. Sibling index/count and text-box trimming are especially valuable because they solve recurring UI layout problems with cleaner CSS. Browser support is already strong or rapidly arriving, which makes these features practical for progressive enhancement rather than distant speculation.

Data Points: Chrome support for CSS relative color alpha: Version 151 - The feature was described as available in Chrome since version 151. Safari support for CSS relative color alpha: Safari 27 - The hosts said the feature will be in Safari 27 and that one speaker was already running Safari 27. Relative color alpha timeline: As of July 27, 2026 - The episode referenced Chrome support timing in relation to this date. CSS sibling index/count in Safari: Since Safari 26 - The hosts noted sibling index/count had already been in Safari for almost a year. CSS text-box trim in Chrome: Since February 2025 - The hosts cited Chrome shipping the typography trimming feature in February 2025.

Pivotal Quotes: "we've been so obsessed with AI for the last six months. There's been so much that's been added to CSS, HTML, JavaScript that I've been looking through all this stuff. I'm like, wow, that's awesome." — Wes: Opening reflection on how much platform innovation has happened recently outside of AI. "I don't want a library for this. This is something I do all the time." — Unknown speaker: Reaction to promise.allKeyed and the value of standardizing a common async pattern in the language. "This is a declarative way to do that, which I don't know. It doesn't make much sense to me because you still have to... use regular JavaScript." — Wes: Skeptical assessment of the proposed camera and microphone HTML elements.

Implications: These APIs could significantly reduce boilerplate, improve readability, and make component styling more declarative. As browser support lands, developers can adopt them progressively to simplify common UI and async patterns.

🔓 Sign Up for Unlimited Episode Search

About Syntax - Tasty Web Development Treats

View all episodes from Syntax - Tasty Web Development Treats