Status: PASS | Duration: 5ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-lists/counter-reset-reversed-pseudo-002.html
<!doctype html> <title>CSS Lists: counter-reset: reversed() on element, counter-increment on its pseudo-element</title> <link rel="help" href="https://drafts.csswg.org/css-lists/#counter-reset"> <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-pseudo-002-ref.html"> <style> .item { counter-reset: reversed(foo); } .item::before { counter-increment: foo -2; content: counter(foo); } </style> <div class="item"></div>
/css/css-lists/counter-reset-reversed-pseudo-002-ref.html
<!doctype html> <title>CSS Lists Reference</title> <style> .d::before { content: attr(data-val); } </style> <div class="d" data-val="2"></div>