hn.today

The Future of CSS

joshwcomeau.com588 points260 comments
Screenshot of The Future of CSS

Major browser vendors collaborate through Interop to prioritize CSS features that, when added, typically reach near-100% support within a year. The write-up highlights ten top picks for Interop 2027, focusing on concrete capabilities and current implementations. Key items include CSS functions (@function) that let authors define reusable value-returning helpers (examples: gradient-to-transparent and translate-polar for polar→Cartesian transforms), corner-shape for alternatives to border-radius (squircle, bevel, notch, scoop) that actually alter the border-box so borders, outlines, and shadows follow the new geometry, and border-shape which enables drawing borders with lines, arcs, and Bézier curves and animating between shapes. Most of these are already implemented in Chromium (Chrome/Edge) but not in Firefox or Safari as of October 2026.

Other notable picks are Anchor Positioning Level 2’s anchored container queries, which expose whether a floated target used a fallback (e.g., flipped tooltip) so CSS can adapt arrow styling; an inherit() function that returns an inherited value for transformation via calc() (useful for adjusting nested border-radius); and scroll-triggered/scroll-driven animations. The overall takeaway is practical: many powerful, layout- and animation-focused features are production-ready in some browsers and make excellent progressive enhancements, and their inclusion in Interop 2027 would likely push them to broad, cross-browser availability.

Read on joshwcomeau.com260 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Web

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.