Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-lists/counter-reset-reversed-siblings-003.html - WPT Dashboard Interop Dashboard
<!doctype html>
<title>CSS Lists: sibling elements with counter-reset: reversed()</title>
<link rel="help" href="https://drafts.csswg.org/css-lists/#counter-reset">
<link rel="help" href="https://drafts.csswg.org/css-lists/#inheriting-counters">
<link rel="help" href="https://drafts.csswg.org/css-lists/#instantiating-counters">
<link rel="author" title="Minseong Kim" href="mailto:jja08111@gmail.com">
<link rel="match" href="counter-reset-reversed-siblings-003-ref.html">
<style>
.counter-use::before {
content: counter(foo);
}
</style>
<div style="counter-reset: foo 10;">
<div style="counter-reset: reversed(foo)">
<div class="counter-use" style="counter-increment: foo -1;"></div>
</div>
<div class="counter-use" style="counter-increment: foo -2;"></div>
</div>