CSS counter playground

The red CSS column is drawn entirely by counter-increment + content: counter(item). The green JS column is written by script and is always correct. They start identical — add, remove, or hide rows and watch the red column stay in sync without a single line of JS.

CSSJSItem