4 ms·
Came here to report level 19 as well. According to the description on level 18 div p:nth-child(2) selects the second <p> in every <div> So on level 19,
by kang 13y ago
Came here to report level 19 as well.
According to the description on level 18
div p:nth-child(2)
selects the second <p> in every <div>
So on level 19, to select the first <bento> in <div>,
div bento:nth-child(1)
should work, but it doesn't. However,
div bento:nth-child(2)
works. So I think a possible bug here?
- chc 13y agoThe description of :nth-child is misleading here. It would only do that if the first two elements in every DIV were P elements. A more accurate description would be "Selects the second element in each DIV if it is a P." The description given there sounds more like :nth-of-type.