After a period of transition that left the front-end community wondering about its future, CSS-Tricks is officially back online under new ownership. The platform is wasting no time catching up, launching a massive, feature-packed edition of its signature "What’s !important" roundup. This edition arrives alongside major structural announcements, including the return of the platform’s newsletter after a four-year hiatus. Starting November 10th, these comprehensive development roundups will transition directly to the bi-weekly newsletter format, delivering web platform updates and front-end insights straight to subscribers’ inboxes.
The revival also brings notable community perks, such as a special promotional discount on Mat Marquis’s JavaScript for Everyone course for returning readers, setting the stage for a deep dive into the latest and most advanced techniques circulating across the web development ecosystem.
How to Create Background Image Refraction Effects
Among the technical highlights of the new era, Preethi Sam demonstrated a cutting-edge approach to creating background image refraction effects using pure CSS. The technique yields stunning visual results that can be dynamically animated without relying on JavaScript or requiring developers to duplicate image assets. By leveraging modern browser capabilities, creators can achieve sophisticated graphical distortion and glass-morphism aesthetics with minimal code, showcasing how far native stylesheet capabilities have evolved.
How to Build Components Using Style Queries and attr()
Component architecture continues to undergo a paradigm shift, as illustrated by Brecht De Ruyte. By combining container style queries with advanced uses of the native attr() function, developers can wire up highly customizable, context-aware components in CSS. Accompanying this technique, Dan Holloran explored the practical application of new scroll-state() queries—including scrollable, scrolled, snapped, and stuck. These straightforward state queries allow developers to style elements dynamically based on their interaction with a scrolling container, as demonstrated by concise conditional rules like container queries reacting when an element is stuck to the top of a viewport.
The Craziest CSS to Ever Exist
Looking back while pushing forward, Declan Chidlow curated a nostalgic yet jaw-dropping look at some of the most unconventional and wild CSS hacks to ever exist. Much of the legacy code hailed from the era of Internet Explorer, reminding veteran developers of the convoluted vendor-prefixed properties and proprietary Microsoft filters, such as old alpha opacity declarations, that once dominated stylesheet engineering. The retrospective serves as a humorous reminder of how far standards have progressed and why modern web development has largely moved past those fragile workarounds.
How to Animate CSS Grids Using Anchor Positioning
Layout animations received a significant boost with a technique demonstrated by Bramus, who showcased how to animate CSS grid layouts by pairing them with CSS anchor positioning. Instead of awkwardly attempting to animate grid track sizes directly, this method anchors content elements to their corresponding grid cells. As the underlying grid reflows, the anchored content smoothly animates with the transition. While currently limited by browser support issues in Firefox due to underlying implementation bugs, the approach points toward a future of fluid, high-performance layout transitions.
New HTML Features
Expanding beyond stylesheets, Chris Coyier shed light on a series of under-the-radar HTML features that have quietly landed in the ecosystem. These additions represent a growing effort by browser vendors and standards bodies to bake powerful capabilities directly into markup, reducing the need for heavy JavaScript libraries to handle common structural and behavioral patterns on modern web pages.
How to Use Container Queries the Right Way
Despite ranking high on developer wishlists for years, the adoption of container queries has faced hurdles as teams struggle to integrate them into existing workflows. Victor Ayomipo tackled this friction point by arguing that developers are frequently treating container queries like traditional media queries rather than leveraging their true component-scoped potential. Complementing this discussion, Cory LaViska demonstrated how to implement @custom-media alongside container style queries to establish robust fallbacks, echoing comprehensive deep-dives available in the CSS-Tricks Almanac.
How to Detect Overlapping Elements
Ahmad Shadeed addressed a perennial design challenge: detecting overlapping elements purely through CSS. By combining anchor positioning, scroll-driven animations, and container style queries, developers can now dynamically monitor when decorative or fluidly positioned elements intersect with section boundaries. This capability eliminates the need to rely on static media queries to hide or alter elements, offering a genuinely dynamic solution to responsive layout design.
Introducing the previewsrc HTML Attribute
In browser proposal news, Patrick Brosset walked through a new concept for the previewsrc HTML attribute. This potential addition would allow developers to natively specify low-fidelity placeholder or blurry preview images directly within markup for assets that have not yet fully loaded. While the proposal aims to streamline image loading performance, the web community continues to debate whether native pseudo-classes like :loaded might offer a more flexible, CSS-driven alternative for styling unloaded media without extra markup overhead.
Custom Borders and Animating ::selection Background Colors
Visual styling pushed the boundaries of what is conventionally possible when Temani Afif shared a demonstration on custom borders. By utilizing transparent borders alongside border-shape properties and scoping backgrounds using background-clip, developers can achieve intricate border effects.
In a similarly ingenious discovery, Leon Arnott demonstrated a method to animate the background color of the ::selection pseudo-element. While text selection highlights have historically been resistant to keyframe animations, Arnott realized that inheriting a color variable from a parent element—and making that variable animatable via @property—successfully unlocks smooth transitions for highlighted text selections.
Random Animations and Preventing Accidental Zooming
Adding a touch of motion and whimsy, Chris Coyier demonstrated how to use the CSS random() function to animate an element dynamically along the edge of another element. On a more practical note for touch interfaces, Andy Bell highlighted the utility of touch-action: manipulation. Long familiar to accessibility and mobile optimization experts, this simple rule disables the default double-tap-to-zoom behavior on interactive elements like buttons, preventing frustrating accidental viewport zooming during rapid user interactions.
New Web Platform Features and Updates
The broader web platform continues to accelerate, with Chrome and Firefox maintaining rapid bi-weekly release cadences. Meanwhile, the arrival of Safari—alongside synchronized updates across Apple’s operating system ecosystems—has brought several advanced features to Baseline status within a shared release window, signaling a period of unprecedented interoperability and cross-browser consistency for front-end developers worldwide.