Skip to content

Fix min/max functions in calc expressions - #116

Merged
asamuzaK merged 1 commit into
mainfrom
calc
Aug 7, 2026
Merged

Fix min/max functions in calc expressions#116
asamuzaK merged 1 commit into
mainfrom
calc

Conversation

@asamuzaK

@asamuzaK asamuzaK commented Aug 7, 2026

Copy link
Copy Markdown
Owner

Related: jsdom/jsdom#4225

Add proper handling for CSS functions like min(), max(), and clamp() that contain commas as argument separators. These functions should not be sorted or treated like arithmetic operators. The fix checks for comma presence and detects function patterns beyond calc(), and normalizes comma spacing in the output.

Add proper handling for CSS functions like min(), max(), and clamp() that contain commas as argument separators. These functions should not be sorted or treated like arithmetic operators. The fix checks for comma presence and detects function patterns beyond calc(), and normalizes comma spacing in the output.
@asamuzaK
asamuzaK merged commit 5df3573 into main Aug 7, 2026
18 checks passed
@asamuzaK
asamuzaK deleted the calc branch August 7, 2026 23:06
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.

1 participant