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

🐞 clamp() function does not work correctly #358

Open
takamoso opened this issue Jun 12, 2024 · 1 comment
Open

🐞 clamp() function does not work correctly #358

takamoso opened this issue Jun 12, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@takamoso
Copy link

Description

If specified normally, an empty style is generated.

<p class="font-size:clamp(1.5rem,2vw+1rem,2.25rem)">...</p>
.font-size\:clamp\(1\.5rem\,2vw\+1rem\,2\.25rem\) {}

When I wrap it with the calc() function, it works fine.

<p class="font-size:clamp(1.5rem,calc(2vw+1rem),2.25rem)">...</p>
.font-size\:clamp\(1\.5rem\,calc\(2vw\+1rem\)\,2\.25rem\) {
  font-size: clamp(1.5rem, 1rem + 2vw, 2.25rem);
}

Reproduction

No response

System Informations

No response

@takamoso takamoso added the bug Something isn't working label Jun 12, 2024
@1aron
Copy link
Member

1aron commented Jun 12, 2024

@takamoso Confirmed it was a bug.

We have to normalize font:clamp(1.5rem,2vw+1rem,2.25rem) into a valid format font:clamp(1.5rem,2vw + 1rem,2.25rem) for CSS.

Will fix it later, thanks.

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