The code below appends the content before first-child of .current and .done
.current:first-child::before {
content: 'Current ';
color: blue
}
.done:first-child::before {
content: 'Done ';
color: red
}
<!DOCTYPE html>
<html>
<head>
<style>
</style>
</head>
<body>
<ul>
<li class="current">The first li.</li>
<li class="done">The second li.</li>
<li class="done">The third li.</li>
</ul>
</body>
</html>
I am unable to understand why the content "Done" is not appended before "The second li" even though it is the first-child of .done (.done:first-child::before)