<!doctype html>
<title>CSS Lists and Counters: counters(c, &quot;.", upper-roman)</title>
<link rel="help" href="https://drafts.csswg.org/css-lists/#inheriting-counters">
<link rel="match" href="counters-003-ref.html">
<meta name="assert" content="counters are not inherited from the previous sibling, when can be inherited from the ancestor">
<style type="text/css">
body, #test span:first-child { counter-reset: c; }
p, #test span { counter-increment: c; }
#test span::before { content: counters(c, ".", upper-