:nth-child() pseudoclass and the of S clauseUsing :nth-child( 2n of .star ) matches every other element with a class name of .star.
To date, the of S clause is only supported by Safari, GNOME Web, and other browsers that use the WebKit Engine. If none of the stars below appear to have a green, dashed border, your browser does not yet support the of S clause.