mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-02 04:17:17 +02:00
This represents each element's set of CSS counters. https://drafts.csswg.org/css-lists-3/#css-counters-set Counters are resolved while building the tree. Most elements will not have any counters to keep track of, so as an optimization, we don't create a CountersSet object until the element actually needs one. In order to properly support counters on pseudo-elements, the CountersSet needs to go somewhere else. However, my experiments with placing it on the Layout::Node kept hitting a wall. For now, this is fairly simple at least. (cherry picked from commit 708f49d906389f8875f006894e2aacf2305834bf)
4.0 KiB
4.0 KiB