Skip to content

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

Open
@htunnicliff

Description

@htunnicliff

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions