Skip to content

Conversation

@thecrypticace
Copy link
Contributor

The implementation of v3's math operator normalization uses a safe-list of function names. Need to add sibling-index() and sibling-count() to this list otherwise when used inside math functions like calc() they'll get spaces around the -.

@thecrypticace thecrypticace marked this pull request as ready for review November 19, 2025 13:48
@thecrypticace thecrypticace requested a review from a team as a code owner November 19, 2025 13:48
Copy link
Member

@RobinMalfait RobinMalfait left a comment

Choose a reason for hiding this comment

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

Going to approve it, but I wonder how hard it would be to backport the v4 implementation instead which should handle this (and future functions) 🤔

@thecrypticace
Copy link
Contributor Author

@RobinMalfait I added a thing to handle custom functions as well but yeah maybe could backport from v4. Lemme look into that to see what it'd be like. 🤔

@thecrypticace
Copy link
Contributor Author

@RobinMalfait ported that from v4 👍

@thecrypticace thecrypticace merged commit e2b47e8 into v3 Nov 19, 2025
28 checks passed
@thecrypticace thecrypticace deleted the fix/v3-no-break-sibling-fns-in-calc branch November 19, 2025 15:35
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.

3 participants