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

Unable to set a number value for aspect-ratio #3011

Closed
aerialist7 opened this issue Mar 15, 2023 · 0 comments · Fixed by #3012
Closed

Unable to set a number value for aspect-ratio #3011

aerialist7 opened this issue Mar 15, 2023 · 0 comments · Fixed by #3012

Comments

@aerialist7
Copy link

aerialist7 commented Mar 15, 2023

Hi Team,

I found a problem when setting the aspect ratio as a number value.
I have next configuration:

const style = css({
  color: "darkred",
  aspectRatio: 1
});

Current behavior:
It becomes aspect-ratio: 1px in resulted CSS.

See the screenshot:
Screenshot 2023-03-15 at 18 15 51

To reproduce:

  1. Go to https://codesandbox.io/s/aspect-ratio-emotion-issue-yle4xs?file=/src/App.tsx
  2. Chech aspect-ratio value in Dev Tools

Expected behavior:

It should be aspect-ratio: 1 in resulted CSS.

Linked issue:

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

Successfully merging a pull request may close this issue.

1 participant