I saw the following line in a code:
.className.className {
font-weight: bold;
}
Is there a reason to write this twice?
I saw the following line in a code:
.className.className {
font-weight: bold;
}
Is there a reason to write this twice?
It is likely used to increase the specificity of the selector.
It would probably be better if it was rewritten to change the source order instead.
It's a typo!
Technically this code will apply to an element with the following classes: "className"
or "className"
.
But because one match is enough and they are the same name it doesn't matter.