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

[Bug] Descendant selector AND general sibling selector with curly bracket in new line causes error #2851

Open
wykopx opened this issue Jan 9, 2024 · 0 comments

Comments

@wykopx
Copy link

wykopx commented Jan 9, 2024

Bug Report

Bug Description

When you put descendant selector (div span) or general sibling selector (div ~ span)
and also use curly brackets to group css properties and put the opening bracket in a new line like this:

image

image

you will get an error:

image

This error is not occuring for child selector (div > span)

image

and also not occuring for adjacent sibling selector (div + span)

image

The error is not occuring for descendant selector and general sibling selector when you put opening curly bracket in the same line:

image

Example Stylus style for testing:

https://userstyles.world/style/14118/descendant-selector-and-general-sibling-selector

Expected behavior:

Stylus should be able to parse following css:

div span
{
  color: red;
}

Environment information:

  • stylus version: newest
  • nodejs version: newest
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