Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected error for "of <selector>" syntax #18

Open
htunnicliff opened this issue Oct 19, 2023 · 0 comments
Open

Unexpected error for "of <selector>" syntax #18

htunnicliff opened this issue Oct 19, 2023 · 0 comments

Comments

@htunnicliff
Copy link

The :nth-last-child() psudeo-class supports an optional selector argument: the of <selector> syntax.

Here is an example:

export const Example = styled.div`
  & > *:nth-last-child(-n + 3 of li.important) {
    padding-bottom: 10px;
  }
`;

When using this syntax, the following unexpected errors occur:

At the & character:

} expected [ts-styled-plugin(9999)]

At the closing } character:

at-rule or selector expected [ts-styled-plugin(9999)]

Expected Behavior

No errors occur since syntax is valid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant