Skip to content

PostCSS Trigonometric Functions #381

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 20 commits into from
May 20, 2022

Conversation

Antonio-Laguna
Copy link
Member

@Antonio-Laguna Antonio-Laguna commented May 16, 2022

Adds support for Trigonometric Functions which are part of the CSS Values and Units Module Level 4.

This enables support for:

  • sin()
  • cos()
  • tan()
  • asin()
  • acos()
  • atan()
  • atan2()

It also allows computing pi, e, infinity, -infinity within the context of these functions. Future expanded usage around those values will be added in future PostCSS Numeric Constants.

They were added to the spec in 2020 and little has changed since then. Because of that, it has been listed as Stage 2 on the CSSDB

Fixes #306

@github-actions github-actions bot added the plugins/postcss-stepped-value-functions PostCSS Stepped Value Functions label May 20, 2022
@Antonio-Laguna Antonio-Laguna marked this pull request as ready for review May 20, 2022 07:00
@Antonio-Laguna Antonio-Laguna self-assigned this May 20, 2022
Copy link
Member

@romainmenke romainmenke left a comment

Choose a reason for hiding this comment

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

LGTM!

Very impressive work on all the math eval!
🎉

@Antonio-Laguna Antonio-Laguna merged commit 5d96ee5 into main May 20, 2022
@Antonio-Laguna Antonio-Laguna deleted the feature/postcss-trigonometric-functions branch May 20, 2022 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for more math functions in calc
2 participants