The Return of a Beloved Frontend Newsletter

After a four-year hiatus, CSS-Tricks is bringing back its newsletter under the name What's !important. The final issue of the old format packs a punch with a curated mix of CSS tricks, platform updates, and community resources. Whether you're a seasoned frontend engineer or a curious beginner, these highlights will keep you ahead of the curve.

In this deep dive, we'll break down the most impactful updates: scrollspy with modern CSS, the random() function, new gradient types, and browser feature rollouts. Let's get started.

Developer reviewing CSS-Tricks newsletter with modern CSS features on laptop Programming Illustration

Modern CSS in Action: Scrollspy and random()

Scrollspy Without JavaScript

Mojtaba Seyedi demonstrated a pure CSS scrollspy using :target and scroll-snap. Here's a minimal example:

/* Container with scroll snap */
.scroll-container {
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  height: 100vh;
}

.section {
  scroll-snap-align: start;
  height: 100vh;
}

/* Highlight active nav item via :target */
.section:target {
  outline: 2px solid hotpink;
}

For a more robust solution, combine with IntersectionObserver for dynamic highlighting.

random() Demos by Brecht De Ruyte

The new random() function in CSS allows dynamic values without JavaScript. Brecht showcased stunning demos, from randomized gradients to particle effects. Example:

.box {
  background: hsl(random(0, 360), 70%, 50%);
  width: random(100px, 300px);
}

Browser support is currently limited to Chrome 156+ (no Firefox/Safari yet). Use with fallbacks.

New Gradient Types: mesh-gradient and freeform-gradient

Two new gradient functions are on the horizon:

background-image: mesh-gradient(red, blue; green, yellow);
background-image: freeform-gradient(red top left, yellow bottom right);

These enable complex, organic gradients previously only possible with SVG or canvas. Keep an eye on browser support.

Browser Updates Roundup

  • Chrome 155: margin-trim, symbols(), text-decoration-skip-spaces
  • Firefox 158: JPEG XL (Baseline), CSS typed arithmetic (Baseline)
  • Chrome 156: random(), :navigation-source
  • Safari 27.1: CSS features for iPhone Duo
  • Firefox 159: Scroll-driven animations (Baseline)

For a deeper look at how foundation models are integrated into production, check out our analysis of Netflix's foundation model integration patterns.

Web developer implementing scrollspy and random() demos using CSS

Critical Considerations & Limitations

While these features are exciting, be mindful of browser support and production readiness:

  • random() is not yet supported in Firefox or Safari; avoid using it for critical UI without fallbacks.
  • mesh-gradient and freeform-gradient are experimental; test thoroughly.
  • Scroll-driven animations are now Baseline in Firefox 159, but older browsers may need polyfills.

Also, the revival of the CSS-Tricks newsletter means you'll need to subscribe to access future issues. The content remains high-quality, but the distribution model has changed.

Pro tip: Always check Can I use for the latest support tables before adopting new CSS features in production.

Frontend engineer comparing browser support tables for new CSS properties Coding Session Visual

Conclusion & Next Steps

The frontend ecosystem is evolving rapidly, with CSS gaining more power and reducing JavaScript dependency. The return of CSS-Tricks' newsletter is a welcome resource for staying informed.

To continue your learning journey, explore our related articles:

Stay curious, and happy coding!

This content was drafted using AI tools based on reliable sources, and has been reviewed by our editorial team before publication. It is not intended to replace professional advice.