Skip to content

:nth-child(expr) is parsed as CSSSelectorSimpleMember #89

Description

@Lesny

Selectors such as:

  • :nth-child(2)
  • :nth-child(2n+7)
  • :nth-child(odd)

Are all parsed to CSSSelectorSimpleMember with value :nth-child(odd)
instead of CSSSelectorMemberFunctionLike with functionName :nth-child( and
parameterExpression odd / 2/2n+7 etc.

I am not sure if these are supposed to be part of public API, if not, then it may not be a bug. I am writing CSS interpreter, and in this context it is problematic.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions