Writing a CSS parser in Nim, I'm testing it on Stack Overflow's all.css
file and found the following invalid selector.
.badge1-alternate::last-child,.badge2-alternate::last-child,.badge3-alternate::last-child,.badge-how-to::last-child {
margin-right: 0
}
Each ::last-child
should be :last-child
. Right now the entire rule will be ignored, so perhaps it's not needed and can be removed entirely. Just thought I'd throw it out there.
I guess this should be phrased as a question... so is this a bug or does Stack Overflow intend for this selector to be written as is? :-)
::
form accidentally doing it with this pesudo-class too.