6min chapter

Syntax - Tasty Web Development Treats cover image

Why is Facebook’s HTML + CSS Such a Mess?

Syntax - Tasty Web Development Treats

CHAPTER

CSS Scoring: A Technique Used to Override Each Other's CSS

Svelte uses a technique called scoping. It's very similar to something like styled components, which also gives your CSS random class names. Svelte by default in their scoped CSS each time you write CSS in a component, it's scoped to that component and a bunch of random classes has been added to it. They do that because it generates a unique class. The system allows people to build big systems without having to worry about how they're going to mess up somebody else's thing. And I don't know what your background out there in radio land is like, but me personally, I've worked on projects and teams when somebody overwrites your thing with a class that

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