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

Css variable with name margin-inline-end will get inline stripped in -webkit property value #3309

Open
eric-chong opened this issue Jan 30, 2025 · 0 comments

Comments

@eric-chong
Copy link

eric-chong commented Jan 30, 2025

Current behavior:

When I uses css variable that has margin-inline-end as part of the variable name. The inline part of the css variable name gets strip off when emotion generates the -webkit css property and value.

To reproduce:

  1. Create a css variable with name: --my-margin-inline-end: 20px;
  2. Use the css variable on any element: margin-inline-end: var(--my-margin-inline-end);

Link to code sandbox: https://codesandbox.io/p/sandbox/emotion-issue-template-forked-v9mfgp?file=%2Fsrc%2FApp.tsx%3A8%2C3-8%2C50

Image

Expected behavior:

The css variable name should not be changed.

Environment information:

"dependencies": {
    "@emotion/css": "11.9.0",
    "@emotion/react": "11.9.0",
    "@emotion/styled": "11.8.1",
    "react": "18.0.0",
    "react-dom": "18.0.0",
    "react-scripts": "4.0.3"
  },
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant