Eight new CSS, HTML and JavaScript APIs are shipping across browsers, and Firefox is finally catching up.
Relative color lets you pull the r, g, b and a, or the h, s, l and a, out of a color. The new short form is simpler: give background a color, whether hex, HSL or whatever, then a forward slash and the percentage you want, and the color becomes semi-transparent at runtime.
It is in everything. Safari has it in Technology Preview and it arrives in Safari 27, Firefox has it in the current nightly build, and Chrome has had it since version 151, as of July 27th, 2026. Because relative color is already implemented, this is a low-lift syntax add.
It does the calc work of asking where your value sits between a starting and an ending value. You pass where you are plus the two bounds, and the units need not match: where is 2em between 8 pixels and 100%, or 150 extrapolated between zero and a thousand.
It gives you a unitless value, so if you want a percent, em or px you still have to coerce it with calc. It also has nothing to do with the CSS or HTML progress element; it simply answers how far you are between two values.
promise.all and promise.allSettled only take arrays, so the order results come back in matters and you loop over them using the index of the value. With allKeyed you make an object whose properties are promises, fetch user and fetch posts, await it, and get the object back with resolved keys to destructure.
attr has been in the web forever, but you could only really use it with content. The modern implementation lets you use the value in a real way with anything: background, width, height. That turns attributes into props for CSS, so a button with data-dash-size small, medium or large is readable directly in your styles.
They give the current index of an item and the count of how many siblings there are. Previously you counted with JavaScript or wrote nth-child rules for every possible case. The example is a 360 degree circular navigation: with four items the rotation is zero, 25, 50, 75, and five items changes every value.
Line height one accounts for the very highest capitals and the very lowest descenders, so the text box is huge even when no letter ascends or descends and your button is not vertically centred. On the Mad CSS site, text-box-trim cap alphabetic trimmed it to the letters so equal top and bottom padding matched exactly.
They declaratively request access where you would normally call navigator.mediaDevices.getUserMedia, take the stream and put it into a video element or a media recorder. But you still have to listen for the access events and write regular JavaScript, so the benefit is unclear; it is only in prototyping stage and may pair with the Invokers API.
Set width fit-content on a paragraph and it is only as wide as its text, but the element wrapping it is still 100% wide and you cannot fit-content that too, which drives you toward floats. The new max content sizing shrink to fit suctions the parent down to the size of the fit-content child.
“Welcome to Syntax Today. We've got eight amazing new CSS, HTML, and JavaScript APIs that you need to know about.”
“Well, Sass has done it build time.”
“It's been in Chrome since version 151.”
“I don't want a library for this.”
“I think you've talked me out of it.”
“Now, this function has been around in the web for a billion years.”
“8 New CSS, JS and HTML Features You Should Know.” https://www.youtube.com/watch?v=Ssm0vJtJr2U. Transcript summary by WhipScribe, https://whipscribe.com/transcript-pages/8-new-css-js-and-html-features-you-should-know.html.