Skip to content

fix: preserve calc() in declarations when result is negative - #310

Merged
ludofischer merged 2 commits into
masterfrom
fix-negative
Sep 7, 2026
Merged

fix: preserve calc() in declarations when result is negative#310
ludofischer merged 2 commits into
masterfrom
fix-negative

Conversation

@ludofischer

Copy link
Copy Markdown
Collaborator

No description provided.

@ludofischer
ludofischer merged commit f72e176 into master Sep 7, 2026
3 checks passed
@ludofischer
ludofischer deleted the fix-negative branch September 7, 2026 14:16
@ludofischer

Copy link
Copy Markdown
Collaborator Author

@phuoccss I've discovered that replacing negative number inside calc() by the number might give a different result than according to the spec https://drafts.csswg.org/css-values-4/#functional-numeric So depending on your use case, you might want to pay attention to that. I've added an option to control this behaviour.

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