92: CSS if() and custom functions
About this episode
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 🤿
More from The CSS Podcast
Una and Bramus recap the season! They share some new updates and re-visit some of their favorite tips and tricks.Season 6 covered inline if() statements and custom functions, scroll state queries, car…
In this episode of The CSS Podcast, Una and Bramus cover a bunch of CSS functions from comparison functions to tree counting functions, the random function, and more. Resources: min(), max(), and clam…
In this episode of The CSS Podcast, Una and Bramus cover building customizable select menus. Have you ever had to build a dropdown menu where you want to do something as simple as change the color, or…
In this episode of The CSS Podcast, we're diving into the power of invoker commands! Discover how the command and commandfor attributes allow you to declaratively open dialogs and show popovers. We'll…
Welcome back to The CSS Podcast! Una and Bramus dive into CSS anchor positioning, a powerful new API that revolutionizes how developers handle dynamic UI element placement. Learn how to create interac…