flukeout / css-diner

CSS Diner
http://cssdiner.com
Mozilla Public License 2.0
2.7k stars 345 forks source link

Level 17 - Select the small apple and the pickle: Using last-child to get the pickle is not accepted as a possibly correct solution #269

Open KevinAnggrek opened 6 months ago

KevinAnggrek commented 6 months ago

In Level 17 - Select the small apple and the pickle:

#fancy :last-child, pickle is accepted as a correct answer

However, certain other ways to select the pickle element does not work: #fancy :last-child, .table :last-child #fancy :last-child, .table pickle:last-child #fancy :last-child, div pickle:last-child

kimroen commented 3 months ago

Same here! Gave up and just did apple, pickle, but really felt like I wasn't doing what I was supposed to do.

cspablocortez commented 2 months ago

The answer the program accepts is .small:last-child, as long as you don't put in a space between the selector and the pseudo-element.

This is different from the other levels though, so it's confusing whether there will be a space or not.