I am attempting to reverse the list-style-type of nested items within an ordered list, including sub-items and sub-sub-items. I have tried using CSS counters but it doesn't seem to be working. Can anyone point out what I might be doing incorrectly?
ol{
counter-reset: item
}
ol li{
display: block;
margin-left:5px;
}
ol[style*="list-style-type: lower-alpha;"] li:before{
content: counters(item, ".", lower-alpha) ". ";
counter-increment: item;
text-transform: uppercase;
}
ol[style*="list-style-type: lower-alpha;"] li ol li:before{
content: counters(item, ".", decimal) ". ";
counter-increment: item;
text-transform: uppercase;
}
The desired outcome is depicted in this image:
https://i.sstatic.net/6fpSi.png
You can also view a demonstration on JSFiddle