Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Clamp structure invalid property value #5

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

Closed
CzuidwijkRB opened this issue Dec 31, 2021 · 3 comments
Closed

Clamp structure invalid property value #5

CzuidwijkRB opened this issue Dec 31, 2021 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@CzuidwijkRB
Copy link

After installing the package and setting it up through the tailwind config it was creating the font size as following :
font-size: clamp(20px) calc(20px + (30 - 20) * ((100vw - 320px) / (1230 - 320))), 30px);
image

It works perfectly fine whenever I change the value within the inspector tool :
font-size: clamp(20px, calc(20px + (30 - 20) * ((100vw - 320px) / (1230 - 320))), 30px);
image

My tailwind setup :
image

After digging around in the index.js I changed line 56 - 58 into 1 complete line :
Before :
image

After :
image

This generated the right value for me.

Did I do something wrong or has this occurred before? Thanks in advance

@davidhellmann
Copy link
Owner

I will look into it the next days. Looks like the clamp in screen one is closed to early. Didn't run into this but we will see. Thanks for reporting.

@davidhellmann davidhellmann self-assigned this Dec 31, 2021
@davidhellmann davidhellmann added the bug Something isn't working label Dec 31, 2021
@davidhellmann
Copy link
Owner

@CzuidwijkRB can you please try the new release (1.3.3).
Tried it locally with your settings and have no problems.

What browser do you use?
If it not works for you let me know.

@CzuidwijkRB
Copy link
Author

I can confirm that it works now, thanks!

The issue occurred in Google Chrome, seems to be fine now!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants