andr3’s avatarandr3’s Twitter Archive—№ 7,532

  1. …in reply to @meyerweb
    meyerweb brucel rachelandrew Yeah, same. Bruce, add this to first visualise the nth-of-type: p.hero:nth-of-type(2n-1) { outline: 1px solid red; } And the one you’re expecting to turn green is the next sibling if it matches p.hero.
    1. …in reply to @andr3
      meyerweb brucel rachelandrew Expanding: The Hero before the last ComponentA matches the nth-of-type but its next sibling isn’t a p.hero. The Hero after ComponentA doesn’t match the nth-of-type now. Because ComponentA isn’t a p.