Intent to prototype and ship: :nth-child(An+B of <selector list>)
94 views
Skip to first unread message
Zach Hoffman
unread,
Mar 16, 2023, 4:15:23 PMMar 16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Link
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
to dev-pl...@mozilla.org
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.
DevTools bug: N/A, existing DevTools support works fine. Adding autocompletion for selectors is tracked in <https://bugzil.la/1166963>, please speak up if you think something additional is needed.