-
Notifications
You must be signed in to change notification settings - Fork 59
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
Inconsistent output of r
if no units are specified
#119
Comments
TL;DR It's not a problem in Griffel. I forked CodeSandbox and have done the same with plain CSS, https://codesandbox.io/s/brave-resonance-fcx04n?file=/src/App.js. ChromeFirefoxAccording to MDN:
This looks like a bug in Firefox. Feel free to report it 😉 |
@layershifter there's also the separate issue with Firefox, but the problem with Griffel is that the |
@smhigley Griffel generates the same CSS in all browsers and tries to insert it. The problem comes from Minimal example: https://codesandbox.io/s/kind-rosalind-teiu3m?file=/src/index.js ChromeFirefox |
@layershifter that makes sense, thanks! Yeah, the CSS extraction would be nice, and in the meantime logging the output to the console works ¯_(ツ)_/¯ |
If the
r
SVG CSS prop is specified with no units, griffel will generate a className + style for Chromium browsers, but will create a className with no style for Firefox. You can see the difference in this codesandbox on each browser:https://codesandbox.io/s/musing-roentgen-r9i7g5?file=/src/App.js
Firefox has these classNames/styles:
Chromium has these:
It seems like it would be more predictable and much easier to debug if griffel were to output the
r
style regardless of browser support for units/unitless values.The text was updated successfully, but these errors were encountered: