li-value-counter-reset-001.html (1061B)
1 <!DOCTYPE HTML> 2 <!-- 3 Any copyright is dedicated to the Public Domain. 4 http://creativecommons.org/publicdomain/zero/1.0/ 5 --> 6 <html><head> 7 <meta charset="utf-8"> 8 <title>CSS Lists: 'counter-set:list-item' trumps LI @value</title> 9 <link rel="author" title="Mats Palmgren" href="mailto:mats@mozilla.org"> 10 <link rel="help" href="https://drafts.csswg.org/css-lists/#propdef-counter-set"> 11 <link rel="match" href="li-value-counter-reset-001-ref.html"> 12 <style> 13 html,body { 14 color:black; background-color:white; font:16px/1 monospace; padding:0; margin:0; 15 } 16 body { margin-left: 10em; } 17 li.set { counter-set: list-item 99; } 18 </style> 19 </head> 20 <body> 21 22 <ol><li>a<li value=4 class=set>b</ol> 23 <ol><li>a<li value=4 class=set style="counter-increment:list-item 50">b</ol> 24 <ol><li>a<li value=4 style="counter-increment:list-item 50">b</ol> 25 <ol><li>a<li class=set style="counter-increment:list-item 50">b</ol> 26 <ol><li>a<li style="counter-increment:list-item 50">b</ol> 27 <ol><li>a<li value=4 class=set style="counter-set:list-item 88">b</ol> 28 29 </body> 30 </html>