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

Compile error with :is() selector #8

Closed
Knovour opened this issue Mar 30, 2021 · 3 comments
Closed

Compile error with :is() selector #8

Knovour opened this issue Mar 30, 2021 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@Knovour
Copy link

Knovour commented Mar 30, 2021

Source

:is(button, [role="button"]):hover {
	background-color: transparent;
}

Run postcss btn.css -o out.css

Result

:is(button {
	background-color: transparent;
}@media (hover: hover) {[role="button"]):hover {
	background-color: transparent;
}
}

Expected

@media (hover: hover) {
  :is(button, [role="button"]):hover {
    background-color: transparent;
  }
}

It works ok when :hover is inside

:is(button:hover, [role="button"]:hover) {
	background-color: transparent;
}

Example

@saulhardman
Copy link
Owner

Hey @Knovour, thanks for the bug report 👍 I'm going to take a look at this now and get back to you ASAP. Thanks for your patience 😊

@saulhardman saulhardman added the bug Something isn't working label Mar 31, 2021
@saulhardman saulhardman self-assigned this Mar 31, 2021
@saulhardman
Copy link
Owner

Hi again @Knovour, I've just pushed a new release (v1.0.1) – if you could test it and confirm that the fix has worked I'd very much appreciate it. Thanks in advance 🙂

@Knovour
Copy link
Author

Knovour commented Apr 1, 2021

All working now, thank you!

@Knovour Knovour closed this as completed Apr 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants