Skip to content

Support for :nth-child(An+B) where A is negative #148

@kpldvnpne

Description

@kpldvnpne

I have a need to select the first two children. According to this MDN doc, I should be able to do something like this with CSS selectors:

:nth-child(-n+2)

I tried this selector with pup, but it behaves like there is no - in front of n. That is, it behaved the same as :nth-child(n+2).

Is this syntax not supported?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions