mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-12 09:57:00 +02:00
These let you format counters' current values as strings for use in generated content. (cherry picked from commit 898e3bd89878ddb87df06e056031673dc770be2b)
13 lines
270 B
HTML
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>
|