Skip to content

🐞 clamp() function does not work correctly #358

Open
@takamoso

Description

@takamoso

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions