Skip to content

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

@Lesny

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.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions