When you add `container-type` to an element in CSS, it implicitly applies style containment, which scopes CSS counters. This means descendants can no longer access `counter-reset` defined on the container or outside it. The result is that `counter-increment` inside the container creates a new isolated counter per element
Sort: