Skip to content

Accept clamp() in length properties - #579

Open
Atlas07 wants to merge 1 commit into
davesnx:mainfrom
Atlas07:fix/clamp-length
Open

Accept clamp() in length properties#579
Atlas07 wants to merge 1 commit into
davesnx:mainfrom
Atlas07:fix/clamp-length

Conversation

@Atlas07

@Atlas07 Atlas07 commented Jul 19, 2026

Copy link
Copy Markdown

Accept clamp() in length properties

clamp() was registered as a CSS function but never listed in the extended-length value rule — so width: clamp(1rem, 2vw, 3rem) failed to validate, even though min() / max() / calc() worked.

Fix

Added <clamp()> to extended-length and threaded the Function_clamp variant through both renderers and the runtime type, mirroring min()/max().
One shared rule → every length property gets it (width, height, padding,margin, font-size, gap, inset, …).

Scoped to extended-length, which covers essentially all real-world usage.
Percentages/angles/times can follow up. Relates to #413 / #427.

@vercel

vercel Bot commented Jul 19, 2026

Copy link
Copy Markdown

@Atlas07 is attempting to deploy a commit to the David Sancho's projects Team on Vercel.

A member of the Team first needs to authorize it.

@davesnx davesnx left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants