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

Support for :is is inconsistent #23

Closed
stof opened this issue Jun 8, 2022 · 2 comments
Closed

Support for :is is inconsistent #23

stof opened this issue Jun 8, 2022 · 2 comments

Comments

@stof
Copy link

stof commented Jun 8, 2022

:is(a, button).js-button-state is inferred as HTMLAnchorElement|HTMLButtonElement as expected. However, swapping the 2 selectors as .js-button-state:is(a, button) does not infer them that way but as Element.

@stof
Copy link
Author

stof commented Jun 8, 2022

My guess is that it tries to expand that as .js-button-statea, .js-button-statebutton when expanding the :is function, which is broken

@g-plane g-plane closed this as completed in 3277c8b Jun 9, 2022
@stof
Copy link
Author

stof commented Jun 9, 2022

@g-plane thanks for the quick fix. That's great (even though it was not blocking me as I went with the swapped selectors)

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