Naming things just got easier thanks to @scope

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

Sign in to save videos and track what you’ve finished.

IntermediateUIWeb Design26 min

About this video

A CSS tutorial explaining the @scope rule, where it fits in the cascade, how it addresses specificity problems, and the inheritance and browser support points to know. It suits developers who already write CSS.

What you’ll learn

  • Limit CSS selectors to a specific part of the page with @scope
  • Compare & and :scope when writing scoped rules
  • Check browser support before relying on @scope