Skip to main content
edited tags
Link
Hynes StaffMod
  • 3.4k
  • 3
  • 47
  • 43
Minor formatting changes, add the [design] tag
Source Link
hichris123
  • 10.2k
  • 2
  • 32
  • 49

Writing a CSS parser in NimNim, 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? :-)

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

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? :-)

Source Link
Lye Fish
  • 2.6k
  • 11
  • 6

Invalid CSS ::last-child in all.css

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