Scope in CSS - Chris Coyier - CSS Day 2025

Web Conferences Amsterdam
961 views •

I hate to be the one to tell you but writing CSS is half thinking about scope. You don’t always need them, but there are plenty of tools out there that help with scoping one way or another. They are worth considering as they help with a variety of problems a team can run into while building and maintaining a website. CSS itself is getting in on the action with @scope, a relatively new at-rule. It’s got some interesting tricks up it’s sleeve, but doesn’t do the same sort of things that build tools can do related to scope. So I guess we’d better talk about it all together. Slides: https://frontendmasters.com/blog/scope-in-css/ *** A session from CSS Day, the CSS conference. Each June in Amsterdam; see https://cssday.nl for more information. Conference announcements in your inbox? https://cssday.nl/subscribe

Keyboard shortcuts

On. Switch them off if they collide with your assistive tools; ? still opens this sheet.

Go to

Press g then the letter.

  • gh Latest
  • gs Sources
  • gm Media
  • gv Videos
  • gp Podcasts
  • gc Calendar
  • gd Decoder
  • gz Dataviz
  • ga Datasets
  • gb Blog
  • gk Markets
  • gj Careers
  • gn Prompt Notebook

On this page

  • / Focus search, where there is one
  • t Back to top
  • ? This list
  • Esc Close