Files
serenity/Tests/LibWeb/Layout/input/css-counters/basic.html
Sam Atkins 6ab5a043e6 Last: LibWeb: Add counter() and counters() functions to content property
These let you format counters' current values as strings for use in
generated content.

(cherry picked from commit 898e3bd89878ddb87df06e056031673dc770be2b)
2024-07-28 13:31:02 -04:00

13 lines
270 B
HTML

<style>
div {
counter-increment: line;
counter-reset: word;
}
p {
counter-increment: word;
}
p::before {
content: counter(line) "." counter(word) ": ";
}
</style><div><p>Never<p>Gonna<p>Give<p>You<p>Up</div><div><p>Never<p>Gonna<p>Let<p>You<p>Down</div>