The New CSS Math: pow(), sqrt(), and exponential friends

February 20, 2024

CSS added many new Math functions to supplement the old favorites (such as calc()). They all ultimately represent a numeric value, but the nuance in how they work is not always clear from the start. As of February 2024, these CSS functions are available in the latest Edge, Chrome, Safari and Firefox browsers.

Source: The New CSS Math: pow(), sqrt(), and exponential friends

CSS, while maybe not Turning complete (turns out CSS + HTML sort of is Turning complete, ) is certainly powerful–and includes a bunch of mathematical operators. calc with basic operations has been with us a long time, but we now have exponentiation, square roots, logarithms, and more. What are they good for? Daniel Wilson explores in this and a series of articles.