92: CSS if() and custom functions

92: CSS if() and custom functions

From The CSS Podcast by The CSS Podcast

October 13, 2025 · 26 min

About this episode

The episode explores the new CSS features of inline conditionals and custom functions.

Welcome back to the new season of the CSS Podcast, where Una and Bramus are your guides, your cohosts, and your CSS best friends. In this episode we dig into two very powerful new CSS features: inline conditionals with the if() function, and custom functions. Resources: CSS if() function specification → https://goo.gle/3IBChWo Article on if() by Una → https://goo.gle/4nUxIp2 Article on if() by Lea Verou → https://goo.gle/4nt2UvS CSS mixins specification → https://goo.gle/48H8SEH Article on @function by Una → https://goo.gle/48H99rd Article on @function and if() by Bramus → https://goo.gle/46qPbzy The CSS Space Toggle by Chris Coyier → https://goo.gle/4874qio Una Kravets (co-host) Twitter | Instagram | YouTube Making the web more colorful ✨🎨 Web DevRel @googlechrome Unicorn face host of @toolsday & Designing in the Browser 🎬 Bramus Van Damme (co-host) Bluesky | Mastodon | YouTube | Website @GoogleChrome CSS DevRel; @CSSWG ; Scuba Diver 🤿

People in this episode

Hosts: Una Kravets, Bramus Van Damme

Topics covered

  • CSS
  • custom functions
  • if() function
  • web development
  • technology
  • programming

Keywords

  • CSS
  • if() function
  • custom functions
  • web development
  • programming
  • technology

Mentioned in this episode

Organizations: Google, CSSWG, GoogleChrome

Books & works: CSS if() function specification, Article on if() by Una, Article on if() by Lea Verou, CSS mixins specification, Article on @function by Una, Article on @function and if() by Bramus, The CSS Space Toggle by Chris Coyier

More episodes of The CSS Podcast

Explore listener stats, chart rankings, contacts and more on the The CSS Podcast podcast page.