CSS name-only containers (supported in Safari 26.4+) offer a native scoping mechanism for component styles. By assigning a container-name to each component's root element without specifying a container-type, developers can write @container blocks that scope styles to that component without conflicts — no build tools, no
Table of contents
But wait, name-only containers?Components typically already have unique names.Styles in ComponentsScoping Styles in ComponentsDemoSort: