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

SyntaxError for valid CSS #3670

Closed
bedax opened this issue Nov 21, 2021 · 5 comments
Closed

SyntaxError for valid CSS #3670

bedax opened this issue Nov 21, 2021 · 5 comments
Labels

Comments

@bedax
Copy link

bedax commented Nov 21, 2021

Hello, the following works:

:where([aria-hidden="false" i][hidden]) {
  display: initial;
}

While the following does not:

:where([aria-hidden="false" i][hidden]:not(:focus)) {
  display: initial;
}

It gives the following error:

SyntaxError: expected ']' got 'i'

This is with lessc 4.1.2 (Less Compiler) [JavaScript].

Thank you!

@iChenLei iChenLei added the bug label Nov 21, 2021
@iChenLei
Copy link
Member

less.js's current support for modern css is not very good

https://caniuse.com/?search=where
https://developer.mozilla.org/en-US/docs/Web/CSS/:where [Selectors Level 4]

@matthew-dean
Copy link
Member

@iChenLei The issue isn't :where, that's a standard pseudo-class; it's missing support for the i attribute modifier. Pretty sure this is a duplicate issue.

@iChenLei
Copy link
Member

@matthew-dean I noticed that , sir. https://drafts.csswg.org/selectors/#attribute-case
Can you give me some clues to fix this bug ? (source code position ?)

@iChenLei
Copy link
Member

iChenLei commented Dec 7, 2021

#3027 Releative issue

@bedax
Copy link
Author

bedax commented Dec 23, 2021

This seems to have been fixed by #3673. Thank you!

@bedax bedax closed this as completed Dec 23, 2021
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

3 participants