4min chapter

Syntax - Tasty Web Development Treats cover image

Potluck × JR Devs & Copilot × CSS Variable Limitations × SvelteKit

Syntax - Tasty Web Development Treats

CHAPTER

CSS Custom Properties: What Can and Cannot Go In?

The spec is intentionally very lax in what can and cannot go into CSS custom properties. The future maybe we'll be able to do a lot more, Adam says. But right now you can't concatenate strings or coerce a value that is a pixel because it's not a string. So I wish there was like a something in the browser where you could see all of your variables that are scoped to a certain thing.

00:00

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode