645: Mouthblogging CSS in 2024
Episode
56 min
Read time
2 min
Topics
Psychology & Behavior, Philosophy & Wisdom, Science & Discovery
AI-Generated Summary
Key Takeaways
- ✓Field-sizing property: Set field-sizing content on textarea, select, and input elements to auto-resize based on content without JavaScript. Works across any font, size, language, or writing mode, replacing complex grid-based workarounds that required invisible divs and JavaScript propagation.
- ✓Height auto animations: Use interpolate-size allow-keywords or calc-size function to animate elements to auto height after a decade of impossible workarounds. Requires CSS opt-in because existing non-working code would break if suddenly functional. Currently Chrome and Safari only, Firefox pending.
- ✓Anchor positioning: Position elements relative to other elements using anchor names and position properties. Includes fallback positioning when space runs out. Polyfill available from Oddbird for Safari and Firefox. Requires understanding view transition names and blocking behavior for consistent cross-page transitions.
- ✓Light-dark function: Declare light and dark color values in single declaration using light-dark function. Requires setting color-scheme property to light dark on root element. Eliminates need for separate dark theme classes, though Safari implementation currently has contrast issues with default hyperlink colors.
What It Covers
Chris Coyier and Dave Rupert review CSS wrapped 2024 from Chrome DevRel, covering major CSS features that shipped including field-sizing, height auto animations, anchor positioning, view transitions, and scroll-driven animations.
Key Questions Answered
- •Field-sizing property: Set field-sizing content on textarea, select, and input elements to auto-resize based on content without JavaScript. Works across any font, size, language, or writing mode, replacing complex grid-based workarounds that required invisible divs and JavaScript propagation.
- •Height auto animations: Use interpolate-size allow-keywords or calc-size function to animate elements to auto height after a decade of impossible workarounds. Requires CSS opt-in because existing non-working code would break if suddenly functional. Currently Chrome and Safari only, Firefox pending.
- •Anchor positioning: Position elements relative to other elements using anchor names and position properties. Includes fallback positioning when space runs out. Polyfill available from Oddbird for Safari and Firefox. Requires understanding view transition names and blocking behavior for consistent cross-page transitions.
- •Light-dark function: Declare light and dark color values in single declaration using light-dark function. Requires setting color-scheme property to light dark on root element. Eliminates need for separate dark theme classes, though Safari implementation currently has contrast issues with default hyperlink colors.
Notable Moment
The hosts realize CSS has achieved nearly all the major features developers requested in 2014, including container queries, parent selectors with has, display animations, and height auto transitions, questioning what major features remain to be built.
You just read a 3-minute summary of a 53-minute episode.
Get Shop Talk Show summarized like this every Monday — plus up to 2 more podcasts, free.
Pick Your Podcasts — FreeKeep Reading
More from Shop Talk Show
718: 3D Printing Life Upgrades, Don’t Give Away Your Dopamine, and CodePen App Deploys
Jun 8 · 58 min
The Ezra Klein Show
Will Iran Break Trumpism?
Mar 27
More from Shop Talk Show
717: Better DX for Web Components, What Was Popular That Now We’re Used To?
Jun 1 · 53 min
The Proof
The dietary guidelines great debate | Dr Christoper Gardner and Dr Ty Beal
Mar 16
More from Shop Talk Show
We summarize every new episode. Want them in your inbox?
718: 3D Printing Life Upgrades, Don’t Give Away Your Dopamine, and CodePen App Deploys
717: Better DX for Web Components, What Was Popular That Now We’re Used To?
716: Google I/O 2026 Recap Edition
715: Would You Like a LLM With Your Browser?
714: Camping, Burnout, and Chris’ CSS Talk
Similar Episodes
Related episodes from other podcasts
The Ezra Klein Show
Mar 27
Will Iran Break Trumpism?
The Proof
Mar 16
The dietary guidelines great debate | Dr Christoper Gardner and Dr Ty Beal
Practical AI
Jan 9
2025 was the year of agents, what's coming in 2026?
The EntreLeadership Podcast
Dec 29
The Best Calls of 2025
The Diary of a CEO
Dec 29
Chris Williamson: If You Don't Fix This Now, 2026 Is Already Over!
Explore Related Topics
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 DigestNo credit card · Unsubscribe anytime