Skip to main content
Shop Talk Show

671: Naming Consistency, HTML Includes, and Mixins

65 min episode · 2 min read

Episode

65 min

Read time

2 min

Topics

Productivity, Software Development, Crypto & Web3

AI-Generated Summary

Key Takeaways

  • CSS Mixins Proposal: Native CSS mixins will use dash-dash custom idents with apply syntax instead of include, accepting parameters like scroll-buttons-true and rerendering when custom property values change, enabling capabilities impossible in Sass preprocessors through browser-native reactive updates.
  • Inverse Text Sizing: Implement responsive heading sizes by calculating ratio of ideal characters per line divided by actual character count, then multiply max font size by this inverse ratio within clamp function, automatically shrinking long headings and enlarging short ones without JavaScript measurement loops.
  • HTML Includes Evolution: Google's declarative composable document updates proposal introduces view elements with matches attributes for URL-based routing and template swapping, diverging from simple HTML includes toward SPA-style functionality but requiring all templates present in initial document load without on-demand fetching.
  • Custom Ident Consistency: CSS increasingly requires dash-dash prefix for user-defined names in anchor positioning, scroll timelines, and view transitions, creating naming convention inconsistency across features. Emoji usage in custom idents enables visual differentiation of purpose but introduces Unicode rendering and compatibility concerns in large codebases.
  • CSS Feature Completeness: Browser CSS development may slow as language approaches feature completeness with strong layout mechanisms, native functions, and if conditionals now available. Future additions focus on primitives like mixins and functions that enable developers to build custom solutions rather than waiting for specific browser features.

What It Covers

Dave and Chris explore CSS naming conventions, native mixins proposal, HTML includes debate, inverse text sizing techniques, and the evolution of CSS features including custom idents, style queries, and browser implementation priorities.

Key Questions Answered

  • CSS Mixins Proposal: Native CSS mixins will use dash-dash custom idents with apply syntax instead of include, accepting parameters like scroll-buttons-true and rerendering when custom property values change, enabling capabilities impossible in Sass preprocessors through browser-native reactive updates.
  • Inverse Text Sizing: Implement responsive heading sizes by calculating ratio of ideal characters per line divided by actual character count, then multiply max font size by this inverse ratio within clamp function, automatically shrinking long headings and enlarging short ones without JavaScript measurement loops.
  • HTML Includes Evolution: Google's declarative composable document updates proposal introduces view elements with matches attributes for URL-based routing and template swapping, diverging from simple HTML includes toward SPA-style functionality but requiring all templates present in initial document load without on-demand fetching.
  • Custom Ident Consistency: CSS increasingly requires dash-dash prefix for user-defined names in anchor positioning, scroll timelines, and view transitions, creating naming convention inconsistency across features. Emoji usage in custom idents enables visual differentiation of purpose but introduces Unicode rendering and compatibility concerns in large codebases.
  • CSS Feature Completeness: Browser CSS development may slow as language approaches feature completeness with strong layout mechanisms, native functions, and if conditionals now available. Future additions focus on primitives like mixins and functions that enable developers to build custom solutions rather than waiting for specific browser features.

Notable Moment

Paul Irish unexpectedly emerged from retirement to fork a CodePen demonstrating fit-to-width text sizing, replicating the inverse ratio technique using data attributes and CSS typecasting to achieve optical correctness without exact pixel measurements, validating the approach's practical utility.

Know someone who'd find this useful?

Episode Transcript

Okay, idiots. Go lay down. Hey there, Shop Maniacs. You're listening to another episode of the Shop Talk Show. I'm Dave Buzzcutt Rupert with me is Chris Coyer. Hey, Chris. Yeah. He looks amazing. Is it because it's hot as hell and and then and it feels good? Or what was the Super hot, in Texas. Like, you know Uh-huh. 90 with, like, 80% humidity kinda vibes. You know? Just Right. Yeah. But What else, though? The cold man triggered it was my son got a buzz cut. He's super into it. I don't know. I think it's a meme or something going around, but I saw him get a buzz cut, and I was like, that looks Jellitude. Yeah. Okay. I got I got really jealous of my son's buzz cut, and so now we both have buzz cuts. And So, like, how fast does it grow, though? Like, by Christmas, are you gonna be samurai again or or no? I might. It might grow back. I think that that last you know, I got a haircut for job interviews. So that would have been, like, about a year and a half or so, with the old haircut. So Oh, yeah. So you grow you grow up pretty quick. Must take your vitamins or whatever. Well, I I Yeah. I think I I just the the I I have a distracted brain, but good hair, you know? So that's that's what I bring to the table. Hi. Well, I'd like to I'm interviewing for this job. I am pretty distracted, generally, but, I have good hair. So that's what I offer. When you do when you pull your hair back during an interview, I think that works. There's just some it's just a power move kinda. Oh, yeah. I did I remember when Jake Alba used to work for us with with long hair, and we were all just so jealous. We're like, that's good hair. And then he buzzed it too. So that's the it was dangerous. Jake, you never came back after you Never came back. Buzzed it. Yeah. Keep it long. And there's certain midlife crises you can have, you know, and and I felt like buzz cut was a safe one. Yeah. That that was like, you know, I'm gonna change it up. You know? I already bought a Jeep, and buzz cut is the next one I could do. There's probably a few more, but I was like, These are good ones. Fair enough. Well, welcome to the No Hair Club. It's nice. You're back from Amsterdam. You talked a bit about it with Brad Frost, with the Frost Brothers. How was CSS day? Oh, it was tremendous. I I feel like I took so many good notes while I was there, and I'm only half through them at most. You know? Because I think that's my or that was my style at this conference. So I'm not gonna extrapolate too far from that, …

Get the full transcript (11,388 words) + summary by email — free

One-time email with the complete transcript and AI summary of this episode. No account needed.

One email, no spam. We’ll also show you what SignalCast does.

Browse all Shop Talk Show transcripts →

You just read a 3-minute summary of a 62-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

Explore Related Topics

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

Read this week's Software Engineering Podcast Insights — cross-podcast analysis updated weekly.

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 one show.

Start My Monday Digest

No credit card · Unsubscribe anytime