Chapter 12 - Generated content, automatic numbering, and lists - 12.4.1 Nested counters and scope
Go to the relevant page of the specification.
Counter-reset on later siblings
Setting 'counter-reset' on later siblings does not have an effect on previous counters.
Counter scope and nesting on elements
Counter scope and nesting on :before
Counter scope and nesting on :after
Counter scope and nesting