« * K @craigabbott.co.uk

Craig Abbott @craigabbott.co.uk

2026-11-03 13:38 UTC

I don’t think so. @layer changes which rule wins, @scope changes where it applies. Neither changes what matches. The tag is doing the work. @scope (button) { .secondary {} } targets .secondary inside the button, not the button. &.secondary is just button.secondary with extra steps.

A reply in a thread.

1 likes, 0 reposts, 0 replies

3 Next post4 More from @craigabbott.co.ukBackBluesky home
☆ Save to home · 0 Home · Find · Games · Chat · AI · Setup