Open unit-404 opened 1 month ago
Hi @unit-404,
We already support abs()
and sign()
in css-calc
, the underlying package behind all math related fallbacks.
So it would be relatively straightforward to create a plugin for this. You can see this package in action here: https://github.com/csstools/postcss-plugins/blob/main/plugins/postcss-trigonometric-functions/src/index.ts
If you have time, please consider contributing : https://github.com/csstools/postcss-plugins/blob/main/CONTRIBUTING.md#creating-a-new-plugin-here
The name for this plugin should be sign-functions
to mirror: https://cssdb.org/#sign-functions
What would you want to propose?
I want to ask support for CSS
sign()
andabs()
.Suggested solution
Additional context
About spec and chrome support:
Validations
Would you like to open a PR for this feature?