Scope Proximity

⚠️ Your browser does not support the @scope rule. Try viewing this demo in Chrome Canary with the experimental web platform features flag.

The dark-theme link should be lightcyan

The light-theme link should be mediumvioletred

The dark-theme link should be lightcyan

With @scope, we can ensure that the 'nearer' scope wins, giving us the correct result no matter how these scopes are nested.