Skip to content

[Feature Request]: Reduce pure pow() functions #222

Open
@blyedev

Description

What should be improved?

I use font sizing with the golden ratio multipliers for convenience. It's a pure function and I'd like to reduce it like the calc function is.

Describe the solution you would like

This:

  font-size: calc(1rem * pow(1.618, 3));

shall turn into this:

  font-size:  4.235801032rem;

Obviously rounding should apply like it does for everything else

Possible alternatives

?

Additional context

I tried to do it and apparently it's not supported, but maybe its simply the nuxt config as I have never used postcss-calc outside of nuxt

Are you willing to work on this?

  • Yes, I would like to help

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions