Writing a CSS parser in Nim
Nim, I'm testing it on StackOverflow'sStack 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 StackOverflowStack Overflow intend for this selector to be written as is? :-)