ph-css icon indicating copy to clipboard operation
ph-css copied to clipboard

:nth-child(expr) is parsed as CSSSelectorSimpleMember

Open Lesny opened this issue 2 years ago • 1 comments

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.

Lesny avatar Nov 02 '22 09:11 Lesny

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jan 07 '24 11:01 stale[bot]