Skip to content
WEB DEVELOPMENT & PROGRAMMING

CSS-Tricks Returns With a Packed Edition Detailing Modern Web Platform Updates and Advanced Techniques

CSS-Tricks is officially back under new ownership, marking its return with a massive edition of its signature roundup series, "What’s !important." Following a hiatus that left many front-end developers wondering about the platform’s future, the publication is wasting no time catching up. Alongside the return of the site’s content updates, the long-running CSS-Tricks newsletter is also making a comeback after a four-year absence, with these bi-weekly roundups scheduled to transition directly to subscriber inboxes starting November 10th.

To celebrate the relaunch, the platform highlighted a significant discount on Mat Marquis’s widely recommended JavaScript for Everyone course for its readers. But the core of the comeback update centers on the rapid evolution of the web platform, featuring groundbreaking CSS techniques, experimental HTML attributes, and major browser release cycles that are reshaping how developers build for the modern web.

How to create background image refraction effects

Among the standout techniques highlighted in the roundup, Preethi Sam demonstrated how to achieve striking background image refraction effects using vanilla CSS. The method requires minimal code, eschews JavaScript entirely, and crucially avoids the need to duplicate DOM elements or source images. The resulting visual effects are fully animatable, showcasing the increasing graphical capabilities native to modern style sheets without performance penalties.

How to build components using style queries and attr()

Component architecture continues to evolve with advanced CSS features. Brecht De Ruyte showcased how developers can construct highly customizable components by combining container style queries with advanced usage of the attr() function. Accompanied by interactive demonstrations, the approach signals a shift in how design tokens and component states can be wired directly through markup attributes and queried contextually.

Complementing this exploration of layout states, Dan Holloran broke down the practical applications of the new scroll-state() queries. By targeting states such as scrollable, scrolled, snapped, and stuck—demonstrated by concise snippets like @container scroll-state(stuck: top)—developers can now style elements dynamically based on their exact position within a scroll container without relying on JavaScript event listeners.

The craziest CSS to ever exist

Looking back while pushing forward, Declan Chidlow curated a retrospective on some of the wildest CSS hacks from web history. The collection heavily features legacy Internet Explorer workarounds, such as Microsoft’s proprietary filter syntax for handling opacity prior to standard opacity properties. The trip down memory lane served as a reminder of how far the styling language has evolved, highlighting that modern web standards have successfully eliminated the need for such brittle, browser-specific hacks.

How to animate CSS grids using anchor positioning

Layout animation has traditionally been a thorny problem for web developers, particularly when dealing with CSS grids. Bramus demonstrated a novel solution by leveraging CSS anchor positioning to animate grid layouts. Instead of attempting to animate the grid tracks themselves, content is anchored to specific cells, allowing the content to transition fluidly as the underlying grid reflows. While the technique opens up sophisticated layout choreography, implementation remains subject to browser support nuances, notably encountering rendering bugs in Firefox.

New HTML features

HTML is also seeing a quiet renaissance. Chris Coyier detailed a series of recent HTML additions that have largely flown under the radar for many developers, pointing to a broader expansion of the web platform’s markup capabilities that extends well beyond traditional CSS and JavaScript domains.

How to use container queries the right way

Despite being heavily requested by developers for years, container query adoption has faced friction. Victor Ayomipo tackled this issue in a recent analysis, arguing that developers have largely stumbled by treating container queries like traditional media queries rather than embracing their component-scoped utility. Adding to the discussion, Cory LaViska demonstrated how enteral-media can be utilized alongside container style queries to provide robust fallbacks, pointing back to Declan Chidlow’s comprehensive deep-dive into @custom-media within the CSS-Tricks Almanac.

How to detect overlapping elements

Ahmad Shadeed addressed the complex challenge of detecting overlapping elements using pure CSS. By combining anchor positioning, scroll-driven animations, and container style queries, developers can now trigger visual changes—such as hiding decorative elements when they intersect with container boundaries—dynamically based on fluid viewport or container dimensions, bypassing the limitations of static media queries.

Introducing the previewsrc HTML attribute

Patrick Brosset introduced a proposal for a new previewsrc HTML attribute designed to improve perceived performance by supplying placeholder images, such as low-fidelity or blurry previews, directly in markup before the primary resource loads. While the proposal aims to streamline image loading states, industry discussions continue regarding whether native CSS pseudo-classes like :loaded and :not(:loaded) might ultimately offer more flexible styling control without requiring redundant markup.

Custom borders demo

Temani Afif shared a demonstration of advanced custom borders utilizing new CSS capabilities. By declaring a transparent border, employing border-shape to define geometry, and combining background styling with background-clip: border-area, developers can restrict backgrounds strictly to the border region. This feature currently requires experimental support in browsers like Chrome.

How to animate the background color of ::selection

In an unexpected breakthrough, Leon Arnott demonstrated how to animate the background color of the ::selection pseudo-element. While text selection highlights have traditionally been static, Arnott utilized a custom property registered via @property inherited from a parent element, effectively bypassing previous animation limitations to create dynamic text selection effects.

How to randomly animate an element along another element

Chris Coyier also explored programmatic visual effects by demonstrating how to use the CSS random() function to animate an element dynamically along the edge of another container. Meanwhile, Polypane published an explainer on root scrollers, detailing how developers accidentally disable root scrolling functionality and outlining best practices for managing document-level scroll behavior.

Addressing mobile interactions, Andy Bell highlighted the utility of touch-action: manipulation for eliminating the frustrating double-tap-to-zoom delay on interactive elements. Though not a brand-new feature, its under-adoption makes it a prime candidate for inclusion in modern CSS resets.

New web platform features and updates

The broader web ecosystem is experiencing synchronized progress. Chrome and Firefox have transitioned to accelerated bi-weekly release cycles, rolling out significant features concurrently. Meanwhile, Safari 27, alongside coordinated updates across iOS, iPadOS, and macOS, has shipped support for several of these same modern capabilities, bringing them into the Baseline availability window simultaneously across major browser engines.