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

emotion: background url(//domain.com/~~) failed #258

Closed
bestseob93 opened this issue Jan 30, 2024 · 2 comments · Fixed by #264
Closed

emotion: background url(//domain.com/~~) failed #258

bestseob93 opened this issue Jan 30, 2024 · 2 comments · Fixed by #264
Assignees

Comments

@bestseob93
Copy link

When using background: url('//') without a protocol, it compiles into an incorrect value.

styled.div`
  background-image: url('//domain.com/image.png');
`

in html
image

@kdy1
Copy link
Member

kdy1 commented Jan 30, 2024

What's the plugin are you using?

@bestseob93
Copy link
Author

What's the plugin are you using?

I used next v14, and the problem occurs when the compiler emotion true option is set to next.config.js. and this also occurs in next v13.4.7.

@kdy1 kdy1 self-assigned this Feb 7, 2024
@kdy1 kdy1 changed the title background url(//domain.com/~~) failed emotion: background url(//domain.com/~~) failed Feb 7, 2024
@kdy1 kdy1 closed this as completed in #264 Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

2 participants