wpt / css / css-lists / counter-reset-reversed-siblings-002.html

Status: FAIL | Duration: 8ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/css-lists/counter-reset-reversed-siblings-002.html

<!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-002-ref.html">
<style>
  .list { counter-reset: reversed(c); }
  .item::before { content: counter(c); }
</style>
<div class="list">
  <div class="item" style="counter-increment: c -1;"></div>
</div>
<div class="list">
  <div class="item" style="counter-increment: c -3;"></div>
</div>

/css/css-lists/counter-reset-reversed-siblings-002-ref.html

<!doctype html>
<title>CSS Lists Reference: sibling elements with counter-reset: reversed()</title>
<style>
  .item1::before { content: "1"; }
  .item2::before { content: "3"; }
</style>
<div class="list">
  <div class="item1"></div>
</div>
<div class="list">
  <div class="item2"></div>
</div>