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 11: Width resolution in Firefox ("fit-content") #2148

Closed
matt-koevort opened this issue Dec 1, 2020 · 2 comments
Closed

Emotion 11: Width resolution in Firefox ("fit-content") #2148

matt-koevort opened this issue Dec 1, 2020 · 2 comments
Labels

Comments

@matt-koevort
Copy link

Current behavior:

In Firefox, width: fit-content is not resolving to the expected width: -moz-fit-content when using Emotion 11.

To reproduce:

https://codesandbox.io/s/emotion-issue-template-forked-6bl2g?file=/src/index.js

  1. (In Firefox) Inspect the text, the width of the container is not set.

Expected behavior:

The width of the the text container should be width: -moz-fit-content but instead get:

width: -webkit-fit-content;
width: -moz-content;
width: fit-content;

None of which work in Firefox.

Environment information:

  • react version: 16.8.6
  • @emotion/react version: 11.1.1
  • @emotion/styled version: 11.0.0
@Andarist
Copy link
Member

Andarist commented Dec 1, 2020

This is a duplicate of thysultan/stylis#245 and the fix is on the way thysultan/stylis#246 . Please follow those threads to be notified when it lands.

@Andarist
Copy link
Member

Andarist commented Dec 1, 2020

The fix for this issue has just been released in stylis@4.0.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants