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

[Feature request] Support for forgiving selector parsing #1254

Open
CatchABus opened this issue Apr 14, 2024 · 1 comment
Open

[Feature request] Support for forgiving selector parsing #1254

CatchABus opened this issue Apr 14, 2024 · 1 comment

Comments

@CatchABus
Copy link

Right now, parser will throw even in the case of :is() pseudo-class that contains an invalid selector (even if there are other valid selectors).

That pseudo-class apparent accepts a forgiving selector list: https://developer.mozilla.org/en-US/docs/Web/CSS/:is#forgiving_selector_parsing

For example, in the following case css will still apply to valid selectors

:is(ol, ul, ??$#$@#) {
  color: green;
}
@fb55
Copy link
Owner

fb55 commented Jun 16, 2024

This makes sense as a new option — PRs welcome!

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

No branches or pull requests

2 participants