W3C home > Mailing lists > Public > www-style@w3.org > January 2013

[css3-values] Predefined constants in calc() notation

From: Jan Tojnar <jtojnar@gmail.com>
Date: Fri, 18 Jan 2013 00:44:36 +0100
Message-ID: <CAFGSp1tjcRjRxC9ao+3oRMCT2c5Z74W2s-Y-L3mNUr++p8Td-Q@mail.gmail.com>
To: www-style@w3.org

I just made a beautiful rectangle using golden ratio but the following code
doesn’t really look nice:


I know I can define a custom variable and use it instead but prefefined
constants (PHI, PI…) and functions (sqrt) would be better – compare:


Also sorry if this was already requested, I could’t find it anywhere.

Jan Tojnar
Received on Friday, 18 January 2013 05:58:45 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:25 UTC