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

withPseudoState.js:194 DOMException: Failed to execute 'insertRule' on 'CSSStyleSheet': Failed to parse the rule '.iJhULf :focus:not(:focus-visible), .pseudo-focus.pseudo-focus-visible .iJhULf :not() { box-shadow: none; }'. #47

Open
isc30 opened this issue Aug 25, 2021 · 3 comments
Assignees

Comments

@isc30
Copy link

isc30 commented Aug 25, 2021

Describe the bug
withPseudoState.js:194 DOMException: Failed to execute 'insertRule' on 'CSSStyleSheet': Failed to parse the rule '.iJhULf :focus:not(:focus-visible), .pseudo-focus.pseudo-focus-visible .iJhULf :not() { box-shadow: none; }'.

To Reproduce
Have a CSS with the following content:

&:focus {
  box-shadow: 0 0 4px red;

  &:not(:focus-visible) {
    box-shadow: none;
  }
}

Expected behavior
It should work

@philippone
Copy link
Member

Hi @isc30 ,

unfortunately I cannot reproduce the error. Could you provide an example repo?

Which framework do you use?

Are there any other (s)css dependencies like css modules?

@philippone philippone self-assigned this Aug 26, 2021
@isc30
Copy link
Author

isc30 commented Aug 26, 2021 via email

@shu-pf
Copy link

shu-pf commented May 16, 2022

I am also an EMOTION and am having trouble with this error.

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

3 participants