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

:is() support busted #737

Open
matthewoates opened this issue Aug 20, 2021 · 0 comments
Open

:is() support busted #737

matthewoates opened this issue Aug 20, 2021 · 0 comments

Comments

@matthewoates
Copy link

Do you want to request a feature or report a bug?

Bug

What is the current behavior?

If the current behavior is a bug, please provide the steps to reproduce and possibly a minimal demo or testcase in the form of a Next.js app, CodeSandbox URL or similar

^ A link to a codesandbox template would really help here. The styled-jsx templates that I found were busted.

return <div>
  <style jsx global>{`
    body :is(h1) {
      color: red;
    } 
  `}</style>
  <h1>test</h1>
</div>;

Expected behavior:

  • h1 is red.

Actual behavior:

  • h1 is black (default)

Additional notes:

  • bypassing styled-jsx by removing the jsx global props produces the expected behavior.

What is the expected behavior?

Environment (include versions)

OS: mac
browser: chrome
styled-jsx: 4.0.0

Did this work in previous versions?

no

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