Status: FAIL | Duration: 9ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-lists/counter-reset-reversed-pseudo-001.html
<!doctype html> <title>CSS Lists: reversed() with pseudo-elements</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-001-ref.html"> <style> .list { counter-reset: reversed(foo); } .item::before { counter-increment: foo -1; content: "B" counter(foo); } .item::after { counter-increment: foo -2; content: "A" counter(foo); } </style> <div class="list"> <div class="item"></div> <div class="item"></div> </div>
/css/css-lists/counter-reset-reversed-pseudo-001-ref.html
<!doctype html> <title>CSS Lists: reversed() with pseudo-elements</title> <style> .d::before { content: attr(data-val); } </style> <div class="d" data-val="B7A5"></div> <div class="d" data-val="B4A2"></div>