More Syntax - Tasty Web Development Treats episodes

996: 10 New CSS and HTML APIs thumbnail

996: 10 New CSS and HTML APIs

Published 15 Apr 2026

Duration: 00:31:29

Recent CSS/HTML advancements include the CSS Masonry API for dynamic layouts, HTML in Canvas for enhanced accessibility, named container queries for modularity, experimental APIs like CSS Random Number, and challenges in browser support alongside niche design applications.

Episode Description

Wes and Scott talk about the latest CSS and browser features, including the Grid Lines API for masonry layouts, HTML in Canvas, name-only container qu...

Overview

The podcast discusses recent updates and experimental features in CSS and HTML that aim to enhance web design flexibility and interactivity. Key highlights include the CSS Masonry API (Grid Lanes), which enables dynamic, Pinterest-style layouts by allowing elements to fill gaps in grids, though its availability remains limited to Safari and experimental in Chrome/Firefox. The HTML in Canvas API introduces the ability to embed HTML elements within <canvas>, preserving accessibility while enabling effects like pixelation or distortion, though it requires manual JavaScript rendering. Additionally, named container queries in CSS allow developers to scope styles to specific elements using container names, offering a more modular alternative to class-based scoping, though browser support is still emerging. These updates reflect a shift toward more integrated, accessible solutions for complex layouts and animations.

The discussion also covers broader implications of these features, such as challenges in browser adoption and documentation for experimental APIs like named container queries. Innovations like the CSS Random Number API, which generates random values for dynamic styling, and pseudo-selectors for search highlights (::search-text, ::current) show potential for creative UI interactions. Furthermore, canvas-based interactivity with DOM elements, akin to Houdinis capabilities, allows pixel-level manipulation while maintaining accessibility. However, limitations in fallback behavior and the need for explicit JavaScript rendering complicate implementation. The podcast emphasizes the importance of long-term, evergreen techniques, such as native CSS scoping and canvas interactivity, over time-bound trends.

Additional topics include sticky positioning improvements in Chrome 148 for both horizontal and vertical directions, multi-column layout fixes with properties like column-wrap, and border-shape APIs for creating custom shapes without SVGs or masks. The Element-Scoped View Transitions API allows granular control over animations for individual components, improving dynamic UI interactions. Challenges persist in areas like lazy loading and search result rehighlighting, where browsers lack native support for maintaining state after content updates. Overall, the session underscores a growing focus on progressive enhancement through modern CSS and JavaScript APIs, alongside the need for developers to explore and adapt to these evolving tools.

Recent Episodes of Syntax - Tasty Web Development Treats

5 Aug 2026 1027: The Rise of the Design Engineer

"Design engineers merge creativity and technical skills to build functional solutions, facing biases in tech while emphasizing human judgment over AI-generated aesthetics, environmental concerns, and practical coding tips."

29 Jul 2026 1025: The Open Web's second chance (w/ Dan Abramov)

"ATProto is a decentralized data layer enabling users to own and control their data across apps, solving walled gardens and interoperability issues with a standardized, JSON-based system and web-native identity."

22 Jul 2026 1023: Mosh, Caddy & Tailscale: A Remote Dev Deep Dive

"Remote development workflows offer benefits like continuous processing and multi-device access but face challenges like rogue processes and secure local environment exposure, with tools like Tmux, Herder, and Tailscale discussed for managing sessions and networking."

20 Jul 2026 1022: Bun re-written in Rust, Zig team big mad

"TypeScript 7.0 delivers a 10x speed boost, network upgrades include 2G speeds and SFP fiber, AI updates cover GPT 5.6 and Grok concerns, while tech news highlights acquisitions, language releases, and personal tech setups."

More Syntax - Tasty Web Development Treats episodes