Skip to main content
Shop Talk Show

682: Whiskey, Security, Antitrust, and Fun with CSS Functions

57 min episode · 2 min read
·

Episode

57 min

Read time

2 min

AI-Generated Summary

Key Takeaways

  • CSS @function syntax: Chrome 139 introduces custom CSS functions using @function with dash-dash naming, result property for return values, and source-order-based precedence where lowest declaration wins, enabling logic abstraction from declarative styles into reusable functions with media query support.
  • npm security response: Storybook reduced dependencies working with E18E efficiency group, avoiding the two-hour window when chalk and strip-ansi were compromised through phishing attack. Projects with fewer base-level dependencies face lower risk when supply chain attacks target widely-used terminal formatting libraries.
  • Google antitrust outcome: Judge Mehta ruled Google can retain Chrome and continue paying Apple for default search placement, requiring only search index data sharing with competitors and syndication services availability. Forcing Chrome sale would create downstream harms affecting browser investment and web platform development funding.
  • CSS if function pattern: The if function consolidates multiple result statements into condition-value pairs separated by semicolons, supporting media and supports queries. This switch-statement-like syntax improves readability when handling ten-plus breakpoints compared to stacked @media blocks with repeated result declarations.

What It Covers

Chris and Dave explore CSS custom functions and if statements, discuss npm security vulnerabilities affecting chalk and strip-ansi packages, analyze Google's antitrust case resolution allowing Chrome retention, and debate authentication challenges for children.

Key Questions Answered

  • CSS @function syntax: Chrome 139 introduces custom CSS functions using @function with dash-dash naming, result property for return values, and source-order-based precedence where lowest declaration wins, enabling logic abstraction from declarative styles into reusable functions with media query support.
  • npm security response: Storybook reduced dependencies working with E18E efficiency group, avoiding the two-hour window when chalk and strip-ansi were compromised through phishing attack. Projects with fewer base-level dependencies face lower risk when supply chain attacks target widely-used terminal formatting libraries.
  • Google antitrust outcome: Judge Mehta ruled Google can retain Chrome and continue paying Apple for default search placement, requiring only search index data sharing with competitors and syndication services availability. Forcing Chrome sale would create downstream harms affecting browser investment and web platform development funding.
  • CSS if function pattern: The if function consolidates multiple result statements into condition-value pairs separated by semicolons, supporting media and supports queries. This switch-statement-like syntax improves readability when handling ten-plus breakpoints compared to stacked @media blocks with repeated result declarations.

Notable Moment

Dave's son performs password resets every single time he logs into any service because he never remembers his credentials, leading Dave to propose RFID badge authentication for children instead of traditional password management systems.

Know someone who'd find this useful?

You just read a 3-minute summary of a 54-minute episode.

Get Shop Talk Show summarized like this every Monday — plus up to 2 more podcasts, free.

Pick Your Podcasts — Free

Keep Reading

More from Shop Talk Show

We summarize every new episode. Want them in your inbox?

Similar Episodes

Related episodes from other podcasts

This podcast is featured in Best Cybersecurity Podcasts (2026) — ranked and reviewed with AI summaries.

You're clearly into Shop Talk Show.

Every Monday, we deliver AI summaries of the latest episodes from Shop Talk Show and 192+ other podcasts. Free for up to 3 shows.

Start My Monday Digest

No credit card · Unsubscribe anytime