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-not-list-item.html - WPT Dashboard Interop Dashboard
 
 
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Lists: counter-reset reversed(not-list-item)</title>
<link rel="match" href="counter-10-ref.html">
<style>
  span { counter-increment: not-list-item -2; }
  .reset-reversed { counter-reset: reversed(not-list-item) }
  .result::before { content: counter(not-list-item) }
</style>
<p>You should see the number 10 below.</p>
<div>
  <span class="reset-reversed"></span>
  <span></span>
  <span class="result"></span>
  <span></span>
  <span></span>
  <span></span>
  <span></span>
</div>