Name-Only Containers: The Scoping We Needed
If we give a `container-name` to the root of all our unique components, we can scope styles to them with a simple @container query.
If we give a `container-name` to the root of all our unique components, we can scope styles to them with a simple @container query.
We’ve got @scope in CSS now, and it’s got it’s uses. But the concept of scope in CSS is a wider idea.
Frontend Masters donates to open source projects through thanks.dev and Open Collective, as well as donates to non-profits like The Last Mile, Annie Canons, and Vets Who Code.