Skip to content

Conversation

AbhineetSaha
Copy link

This PR updates the calculateNewBackgroundPosition function to skip flipping percentages when they appear inside CSS color functions (e.g., hsl(), hsla(), color(), lab(), etc.). This ensures that saturation/lightness and other non-positional percentages remain unchanged, fixing [issue #92].

Original Code:
Screenshot 2024-12-11 at 10 05 24

Fixed Code:
Screenshot 2024-12-11 at 10 04 28

@wikimedia-helper-bot-for-github

👋 Hi @AbhineetSaha,

Thank you for contributing to Wikimedia! This Github repository is a read-only mirror.
The project uses Gerrit for code review.
Please submit your pull request to Gerrit, so your code changes can be reviewed.

If you are interested in sticking around within the Wikimedia community, please take a look at https://www.mediawiki.org/wiki/New_Developers
Thanks in advance!

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant