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

Valid syntax not allowed by Stylus when specifying LESS preprocessor #1253

Closed
setyb opened this issue May 19, 2021 · 2 comments
Closed

Valid syntax not allowed by Stylus when specifying LESS preprocessor #1253

setyb opened this issue May 19, 2021 · 2 comments
Labels

Comments

@setyb
Copy link

setyb commented May 19, 2021

  • Browser: Firefox 88.0.1
  • Operating System: Win
  • Stylus Version: 1.5.17

STR:

  1. Create a new userCSS style
  2. Paste the code below into Stylus for the new style
  3. Try to save the style
  4. Stylus will not let you save the style and will issue the following confusing error:

    Missing closing ')'

  5. In the code, change /* :is(a, b) */ to /* test */
  6. Try to save the style again
  7. Stylus will now let you save the style
/* ==UserStyle==
@name         Test Style
@namespace    testX
@version      1.0.0
@author       Dev
@preprocessor less
==/UserStyle== */


@-moz-document domain("example.com") {
	:is([foo], [bar] /* :is(a, b) */, [baz]) {
		color: red !important; }
}
@tophf
Copy link
Member

tophf commented May 19, 2021

This is a bug in LESS, confirmed by seeing no output in http://lesscss.org/less-preview/
Apparently it doesn't support complex selectors in :is().

If you want to use LESS you'll have to delete the other selectors after the first [foo].
Try reporting to the original repository.

@setyb
Copy link
Author

setyb commented May 19, 2021

Reported on LESS here: less/less.js#3622

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

No branches or pull requests

2 participants