blob: 51fda7bbc7c273fd8cbfd6e654bfcd661ce30550 [file] [log] [blame]
<!doctype html>
<title>CSS Lists and Counters: counter(c, &quot;.", upper-roman)</title>
<link rel="help" href="https://drafts.csswg.org/css-lists/#inheriting-counters">
<link rel="match" href="counter-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">
#test { counter-reset: c; }
#test span { counter-increment: c; }
#test span::before { content: counter(c, upper-roman); }
</style>
<p>The following two lines should look the same:</p>
<div id="test">
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span style="counter-reset: c 48"></span>
<span></span>
<span style="counter-reset: c 388"></span>
<span></span>
<span style="counter-reset: c 3488"></span>
<span></span>
<span></span>
</div>
<div>
I
II
III
IV
V
VI
VII
VIII
IX
X
XI
XII
XLIX
XIII
CCCLXXXIX
XIV
MMMCDLXXXIX
XV
XVI
</div>