ladybird/Tests/LibWeb/Layout/input/css-counters/basic.html
Sam Atkins 898e3bd898 Last: LibWeb: Add counter() and counters() functions to content property
These let you format counters' current values as strings for use in
generated content.
2024-07-26 11:04:30 +01:00

12 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>