Intent to prototype and ship: :nth-child(An+B of <selector list>)
Skip to first unread message
Mar 16, 2023, 4:15:23 PMMar 16
Reply to author
Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Report message as abuse
Sign in to report message as abuse
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
As of today, I intend to turn :nth-child(An+B of <selector list>) and :nth-last-child(An+B of <selector list>) on by default on all platforms. It has been developed behind the layout.css.nth-child-of.enabled preference. Status in other browsers is shipped.
Summary: Implement the selector list of :nth-child(An+B of <selector list>) and :nth-last-child(An+B of <selector list>) from the CSS Selectors 4 spec, which can be used like :nth-of-type(An+B) and :nth-last-of-type(An+B), except <selector list> can be any selector list, not only a type selector.